@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo:ital,wght@1,900&display=swap');

/* ============================================
   Z-INDEX HIERARCHY (to avoid conflicts)
   ============================================
   1:       OLED widget content (clock, status, dolphin)
   2:       Sticky table columns (employee-row)
   10:      Tab navigation container
   10-50:   Base cards and elevated content
   100:     Navbar, fixed navigation
   2000:    All modals (manager.html and saved.html), toasts
   ============================================ */

body {
  background: #e0e5ec;
}

main {
    margin-left: 6.25rem;

}

.headFont {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Main page header styling */
.page-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-style: italic;
}

.bodyFont {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.navbar {
  width: 5rem;
  height: 100vh;
  position: fixed;
  background-color: #18181B;
  transition: width 200ms ease;
  z-index: 100;
}

.logo {
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  height: 8rem;
  color: antiquewhite;
  font-size: 0.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  transition: transform 200ms;
  display: block;
  filter: none;
}

.navbar:hover .logo img {
  transform: scale(1);
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.55rem 0;
  color: aliceblue;
  text-decoration: none;
  filter: grayscale(100%) opacity(0.7);
  transition: 200ms ease;
}

.link-text {
  display: none;
  margin-left: 0.75rem;
  white-space: nowrap;
  font-size: 0.85rem;
  line-height: 1.2;
}

.nav-link:hover {
  filter: grayscale(0%) opacity(1);
  background: #539CF2;
}

.nav-link-active {
  filter: grayscale(0%) opacity(1);
  background: #2c5ea7;
}

.navbar:hover {
  width: 14rem;
}

/* Blur main content when navbar is hovered */
.navbar:hover ~ main {
  filter: blur(5px);
  transition: filter 200ms ease;
}

main {
  transition: filter 200ms ease;
}

.logout-item {
  margin-top: auto; /* Pushes the logout button to the bottom */
}

/* Role-based visibility classes */
.manager-admin-only {
  display: none; /* Hidden by default, shown by JavaScript if user has permission */
}

.manager-admin-only:not([style*="display: none"]) {
  display: flex;
}

.staff-only {
  display: none; /* Hidden by default, shown by JavaScript if user has staff role */
}

.staff-only:not([style*="display: none"]) {
  display: flex;
}

.admin-only {
  display: none; /* Hidden by default, shown by JavaScript if user has permission */
}

.admin-only:not([style*="display: none"]) {
  display: flex;
}

/* Hide parent nav-item when role-scoped links are hidden */
.nav-item > .manager-admin-only[style*="display: none"],
.nav-item > .staff-only[style*="display: none"],
.nav-item > .admin-only[style*="display: none"] {
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  flex-shrink: 1;
  flex-basis: 0;
}

.nav-item > .manager-admin-only:not([style*="display: none"]),
.nav-item > .staff-only:not([style*="display: none"]),
.nav-item > .admin-only:not([style*="display: none"]) {
  width: 100%;
  flex-basis: auto;
}

/* On mobile (flex-direction: row), hide the entire nav-item */
@media (max-width: 767px) {
  .nav-item:has(> .manager-admin-only[style*="display: none"]),
  .nav-item:has(> .staff-only[style*="display: none"]),
  .nav-item:has(> .admin-only[style*="display: none"]) {
    width: 0;
    height: 4.5rem;
    padding: 0;
    margin: 0;
    overflow: hidden;
    flex-shrink: 1;
    flex-basis: 0;
  }
}

#logoutButton:hover {
  margin-top: auto; /* Pushes the logout button to the bottom */
  background: #EC3F39;
}

#logoutButton {
  color: rgb(251, 215, 215);
  cursor: pointer;
}


body::-webkit-scrollbar {
    width: 0.25rem;
}

body::-webkit-scrollbar-track {
    background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
    background: #6649b8;
}

/* Small screens */
@media only screen and (max-width: 600px) {
    .navbar {
      bottom: 0;
      width: 100vw;
      height: 4.5rem;
    }

    .navbar:hover{
        width: 100vw;
    }

    .navbar:hover .link-text{
        display: none;
    }
  
    .logo {
      display: none;
    }
  
    .navbar-nav {
      flex-direction: row;
      align-items: stretch;
      overflow-x: auto;
      overflow-y: hidden;
      justify-content: flex-start;
      scrollbar-width: none;
    }

    .navbar-nav::-webkit-scrollbar {
      display: none;
    }

    .nav-item {
      flex: 0 0 auto;
      width: auto;
    }
    
    .nav-link {
      justify-content: center;
      min-width: 3.75rem;
      min-height: 4.5rem;
      padding: 0.5rem 0.4rem;
    }

    .nav-link i {
      min-width: 1.25rem;
      margin: 0;
      align-items: center;
      font-size: 0.95rem;
      text-align: center;
    }
  
    main {
      margin: 0;
      margin-bottom: 10vh;
    }
  }
  
  /* Large screens */
  @media only screen and (min-width: 600px) {
    .navbar {
      top: 0;
      width: 6.25rem;
      height: 100vh;
    }

    .nav-link i {
      min-width: 1.25rem;
      margin: 0 2.4rem;
      text-align: center;
      font-size: 1.05rem;
    }
  
    .navbar:hover {
      width: 14.5rem;
    }
  
    .navbar:hover .link-text {
      display: inline;
    }
  
    .navbar:hover .logo svg
    {
      margin-left: 11rem;
    }
  
    .navbar:hover .logo-text
    {
      left: 0px;
    }
  }

  /* Client Dashboard Enhancements */
  .client-card-hover {
    transition: all 0.3s ease;
  }
  
  .client-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  .stat-card {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-dark) 100%);
  }
  
  .modal-animation {
    animation: modalFadeIn 0.3s ease-out;
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Modal styles for time clock */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    padding-top: 2rem;
  }

  @media (min-width: 768px) {
    .modal-overlay {
      align-items: center;
      padding-top: 1rem;
    }
  }

  .modal-content {
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.7);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(163, 177, 198, 0.2);
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
  }

  .modal-close:hover {
    color: #374151;
  }
  
  .dashboard-grid {
    display: grid;
    gap: 1.5rem;
  }
  
  @media (min-width: 768px) {
    .dashboard-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .dashboard-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (min-width: 1280px) {
    .dashboard-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  .shift-item {
    transition: all 0.2s ease;
  }
  
  .shift-item:hover {
    background-color: #f8f9fa;
    border-left-color: #0066cc;
  }

  /* Neomorphic design styles - Updated to match clean design */
  .neomorphic {
    background: #e0e5ec;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: none;
  }

  .neomorphic-inset {
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.4), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: none;
  }

  select.neomorphic-inset,
  select.neo-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #e0e5ec;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 0.9rem center;
    background-repeat: no-repeat;
    background-size: 0.95rem;
    padding-right: 2.75rem;
    color: #374151;
  }

  select.neomorphic-inset::-ms-expand,
  select.neo-input::-ms-expand {
    display: none;
  }

  .neomorphic-light {
    background: #e0e5ec;
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: none;
  }

  .neomorphic-button {
    background: #e0e5ec;
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
  }

  .neomorphic-button:hover {
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.6);
  }

  .neomorphic-button:active {
    box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.6);
  }

  /* Colored neomorphic cards */
  .neo-card {
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
  }

  .neo-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.7);
  }

  .neo-blue:hover {
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.3), -3px -3px 6px rgba(255, 255, 255, 0.6);
  }

  .neo-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.7);
  }

  .neo-green:hover {
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.3), -3px -3px 6px rgba(255, 255, 255, 0.6);
  }

  .neo-purple {
    background: linear-gradient(135deg, #bc4e9c 0%, #f80759 100%);
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.7);
  }

  .neo-purple:hover {
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.3), -3px -3px 6px rgba(255, 255, 255, 0.6);
  }

  /* Neomorphic Client Cards */
  .neo-client-card {
    background: #e0e5ec;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
  }

  .neo-client-card:hover {
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.3), -3px -3px 6px rgba(255, 255, 255, 0.6);
  }

  /* Neomorphic Input */
  .neo-input {
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.4), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
    color: #374151;
  }

  .neo-input:focus {
    outline: none;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.4), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
  }

  /* Neomorphic Button */
  .neo-button {
    background: #e0e5ec;
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
    color: #31374c !important;
    font-weight: 600;
  }

  .neo-button:hover {
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.6);
  }

  .neo-button:active {
    box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.6);
  }

  /* Shift status indicators */
  .shift-active {
    border-left: 4px solid #10b981;
  }

  .shift-inactive {
    border-left: 4px solid #d1d5db;
  }

  .shift-completed {
    border-left: 4px solid #3b82f6;
  }

  /* Form enhancements */
  .form-section {
    background: #e0e5ec;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 1px 1px 3px rgba(163, 177, 198, 0.3), inset -1px -1px 3px rgba(255, 255, 255, 0.6);
  }

  /* Checkbox styling */
  .neo-input-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #e0e5ec;
    box-shadow: inset 1.5px 1.5px 3px rgba(163, 177, 198, 0.3), inset -1.5px -1.5px 3px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .neo-input-checkbox:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
  }

  .neo-input-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
  }

  /* Responsive adjustments for mobile */
  @media only screen and (max-width: 600px) {
    .neomorphic {
      margin: 0.5rem;
      padding: 1rem;
    }
    
    .neo-card {
      margin-bottom: 1rem;
    }

    .grid.lg\\:grid-cols-3 {
      grid-template-columns: 1fr;
    }
  }

  /* OLED Widget Styles */
  .oled-clock {
    background: #000;
    border-radius: 12px;
    padding: 4px 2px;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  @media (min-width: 768px) {
    .oled-clock {
      padding: 4px 2px;
      width: 100%;
      max-width: 220px;
      margin: 0 auto;
    }
  }

  @media (min-width: 1024px) {
    .oled-clock {
      padding: 7px;
      width: auto;
      max-width: none;
      margin: 0;
    }
  }

  .oled-clock::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: glow 6s ease-in-out infinite;
  }

  @keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

  .oled-clock-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  @media (min-width: 768px) {
    .oled-clock-content {
      gap: 16px;
    }
  }

  .digital-time {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 0.9;
    margin: 0;
    margin-left: 15px;

    justify-content: center;
    align-items: center;
    text-align: center;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-stretch: expanded;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #fff 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.4));
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .digital-time {
      font-size: 2rem;
      margin-left: 0;
    }
  }

  @media (min-width: 1024px) {
    .digital-time {
      font-size: 3.2rem;
      margin-left: 0;
    }
  }

  @media (max-width: 400px) {
    .digital-time {
      font-size: 2.3rem;
      margin-left: 0;
    }
  }
  .timezone-label {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #999;
    margin: 0;

    white-space: normal;
    line-height: 1.1;
    text-align: left;
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .timezone-label {
      font-size: 1.2rem;
      white-space: nowrap;
    }
  }

  @media (min-width: 1024px) {
    .timezone-label {
      font-size: 2rem;
      white-space: nowrap;
    }
  }

  .shift-status-widget {
    background: #000;
    border-radius: 12px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: auto;
  }

  .shift-status-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: glow 6s ease-in-out infinite;
  }

  .shift-status-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .shift-count {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
  }

  @media (min-width: 768px) {
    .shift-count {
      font-size: 2rem;
    }
  }

  .shift-label {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.5rem;
    color: #999;
    margin-top: 0;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: center;
  }

  @media (min-width: 768px) {
    .shift-label {
      font-size: 0.55rem;
      letter-spacing: 0.8px;
    }
  }

  .shift-detail {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0;
    letter-spacing: 0.5px;
    text-align: left;
  }

  .oled-dolfin-widget {
    background: #000;
    border-radius: 12px;
    padding: 6px 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
  }

  .oled-dolfin-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: glow 6s ease-in-out infinite;
  }

  .oled-dolfin-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .oled-dolfin-content img {
    max-width: 90%;
    max-height: 90%;
    display: block;
  }

  /* Login Page Styles */
  .login-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  }

  .form-card {
    background: #18181B;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .input-field {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
  }

  .input-field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  .input-field:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
  }

  .login-button {
    background: linear-gradient(45deg, #0d9488, #06b6d4);
    transition: all 0.3s ease;
  }

  .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
  }

  .form-card h1 {
    color: #FFFFFF !important;
  }

  .form-card p {
    color: #A1A1A6 !important;
  }

  .form-card label {
    color: #E4E4E7 !important;
  }

  .form-card i {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  .form-card i:hover {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
  }

  .shape:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
  }

  .shape:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
  }

  .shape:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
  }

  .form-card .border-t {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .form-card .bg-white {
    background: #18181B !important;
    color: #A1A1A6 !important;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
  }

  /* Manager Dashboard Styles */
  .calendar-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .calendar-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .calendar-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 12px;
  }

  .calendar-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 12px;
  }

  .calendar-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: 180px repeat(7, minmax(140px, 1fr));
    gap: 2px;
    background: #e0e5ec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
    padding: 2px;
    min-width: max-content;
  }

  @media (max-width: 768px) {
    .calendar-grid {
      grid-template-columns: 140px repeat(7, minmax(100px, 1fr));
    }
  }

  @media (max-width: 640px) {
    .calendar-grid {
      grid-template-columns: 120px repeat(7, minmax(80px, 1fr));
    }
  }

  .calendar-header {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.1), inset -2px -2px 4px rgba(0,0,0,0.1);
    word-break: break-word;
  }

  @media (max-width: 640px) {
    .calendar-header {
      padding: 0.5rem 0.25rem;
      font-size: 0.75rem;
    }
  }

  .employee-row {
    background: #e0e5ec;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: inset 2px 2px 4px #a3b1c6, inset -2px -2px 4px #ffffff;
  }

  @media (max-width: 768px) {
    .employee-row {
      padding: 0.5rem 0.4rem;
      min-height: 70px;
    }
  }

  @media (max-width: 640px) {
    .employee-row {
      padding: 0.4rem 0.3rem;
      min-height: 60px;
    }
  }

  .employee-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.85rem;
    margin-bottom: 2px;
    word-break: break-word;
  }

  @media (max-width: 640px) {
    .employee-name {
      font-size: 0.7rem;
      margin-bottom: 1px;
    }
  }

  .employee-info {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 400;
    word-break: break-word;
  }

  @media (max-width: 640px) {
    .employee-info {
      font-size: 0.6rem;
    }
  }

  .day-cell {
    background: #e0e5ec;
    min-height: 80px;
    padding: 6px 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    box-shadow: inset 2px 2px 4px #a3b1c6, inset -2px -2px 4px #ffffff;
  }

  @media (max-width: 768px) {
    .day-cell {
      min-height: 70px;
      padding: 5px 3px;
    }
  }

  @media (max-width: 640px) {
    .day-cell {
      min-height: 60px;
      padding: 4px 2px;
    }
  }

  .day-cell:hover {
    box-shadow: inset 1px 1px 2px #a3b1c6, inset -1px -1px 2px #ffffff;
  }

  .users-table-wrapper {
    width: 100%;
    min-width: 0;
  }

  .users-table {
    table-layout: fixed;
    min-width: 0;
  }

  .users-table th,
  .users-table td {
    white-space: normal;
    word-break: break-word;
    padding: 0.9rem 0.75rem;
  }

  @media (max-width: 1024px) {
    .users-table th,
    .users-table td {
      padding: 0.65rem 0.5rem;
      font-size: 0.8rem;
    }
  }

  @media (max-width: 768px) {
    .users-table th {
      font-size: 0.7rem;
    }
  }

  .day-cell:empty::before {
    content: '+ Add Shift';
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .day-cell:empty:hover::before {
    opacity: 1;
  }

  .shift-block {
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 
      3px 3px 6px rgba(0, 0, 0, 0.1),
      -3px -3px 6px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 28px;
    justify-content: flex-start;
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-y: auto;
  }

  @media (max-width: 768px) {
    .shift-block {
      padding: 3px 5px;
      font-size: 0.6rem;
      min-height: 24px;
      margin-bottom: 1px;
    }
  }

  @media (max-width: 640px) {
    .shift-block {
      padding: 2px 4px;
      font-size: 0.55rem;
      min-height: 20px;
      border-radius: 4px;
    }
  }

  .shift-block:hover {
    transform: translateY(-1px);
    box-shadow: 
      6px 6px 12px rgba(0, 0, 0, 0.15),
      -6px -6px 12px rgba(255, 255, 255, 0.25);
  }

  .shift-block:last-child {
    margin-bottom: 0;
  }

  .shift-time {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .shift-details {
    font-size: 0.65rem;
    opacity: 0.95;
    line-height: 1.1;
    font-weight: 500;
  }

  .shift-details:not(:last-child) {
    margin-bottom: 1px;
  }

  .availability-available {
    background-color: #dcfce7;
    border-left: 4px solid #16a34a;
  }

  .availability-unavailable {
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
  }

  .modal {
    backdrop-filter: blur(4px);
    z-index: 2000 !important;
  }

  .modal:not(.hidden) {
    display: flex !important;
    width: 100%;
    min-height: 100vh;
  }

  .modal:not(.hidden) > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.85rem 1.35rem;
    margin: 0 auto;
  }

  .modal:not(.hidden) > div .relative {
    width: 100%;
    max-width: 100%;
  }

  @media (max-width: 600px) {
    .modal:not(.hidden) > div {
      padding: 0.6rem 0.95rem;
    }
  }

  @media (min-width: 768px) {
    .modal:not(.hidden) > div {
      padding: 1rem 1rem;
    }
  }

  .compact-modal {
    margin: 0.25rem;
    padding: 0.85rem;
  }

  @media (min-width: 640px) {
    .compact-modal {
      margin: 0.35rem;
      padding: 1rem;
    }
  }

  @media (min-width: 1024px) {
    .compact-modal {
      padding: 1.15rem;
    }
  }

  .modal .neomorphic {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: #e2e7ee;
    box-shadow: 10px 10px 24px rgba(163, 177, 198, 0.45), -10px -10px 24px rgba(255, 255, 255, 0.85);
  }

  .modal .neomorphic-inset {
    border-radius: 14px;
    box-shadow: inset 3px 3px 8px rgba(163, 177, 198, 0.45), inset -3px -3px 8px rgba(255, 255, 255, 0.85);
  }

  .modal .neomorphic-button {
    border-radius: 9999px;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.5), -4px -4px 8px rgba(255, 255, 255, 0.9);
  }

  .modal .neomorphic-button.rounded-lg {
    border-radius: 12px;
  }

  .modal .neo-green,
  .modal .neo-blue,
  .modal .neo-rose,
  .modal .neo-teal,
  .modal .neo-purple,
  .modal .neo-yellow {
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.45), -6px -6px 14px rgba(255, 255, 255, 0.85);
    color: #fff;
  }

  .modal .neo-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  }

  .modal .neo-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  }

  .modal .neo-rose {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%) !important;
  }

  .modal .neo-teal {
    background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%) !important;
  }

  .modal .neo-purple {
    background: linear-gradient(135deg, #bc4e9c 0%, #f80759 100%) !important;
  }

  .modal .neo-yellow {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
    color: #4b5563;
  }

  .modal .scrollable-area {
    max-height: 90vh;
    display: flex;
    overflow: hidden !important;
  }

  .modal .scrollable-area > .compact-modal {
    width: 100%;
    max-height: calc(90vh - 1.5rem);
    overflow-y: auto;
  }

  @media (max-width: 640px) {
    .modal .scrollable-area > .compact-modal {
      max-height: calc(90vh - 1rem);
    }
  }

  .modal .scrollable-area {
    scrollbar-width: none;
  }

  .modal .scrollable-area::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .modal .scrollable-area > .compact-modal {
    scrollbar-width: thin;
    scrollbar-color: #b08efc33 transparent;
  }

  .modal .scrollable-area > .compact-modal::-webkit-scrollbar {
    width: 8px;
  }

  .modal .scrollable-area > .compact-modal::-webkit-scrollbar-track {
    background: transparent;
  }

  .modal .scrollable-area > .compact-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    border-radius: 9999px;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.7), 0 0 10px rgba(192, 132, 252, 0.6);
    border: 2px solid transparent;
  }

  .modal-footer-action {
    min-height: 44px;
    padding: 0.65rem 1.25rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .modal .neomorphic-button.modal-footer-action {
    padding: 0.65rem 1.25rem !important;
    min-height: 44px;
  }

  .shift-notes-scroll {
    scrollbar-width: thin;
    scrollbar-color: #b08efc33 transparent;
  }

  .shift-notes-scroll::-webkit-scrollbar {
    width: 8px;
  }

  .shift-notes-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .shift-notes-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    border-radius: 9999px;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.7), 0 0 10px rgba(192, 132, 252, 0.6);
    border: 2px solid transparent;
  }

  .modal-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e3e7ee;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.45), -6px -6px 12px rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .modal-close-btn:hover {
    transform: scale(0.95);
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.45), -3px -3px 6px rgba(255, 255, 255, 0.9);
  }

  .tab-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #6b7280;
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }

  @media (max-width: 640px) {
    .tab-button {
      padding: 0.4rem 0.6rem;
      font-size: 0.75rem;
      border-radius: 0.375rem 0.375rem 0 0;
    }
  }

  .tab-navigation-container {
    
    padding-bottom: 1px;
    position: relative;
    z-index: 10;
  }

  .tab-button.active {
    background: #e0e5ec;
    color: #374151;
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.5), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    z-index: 2;
  }

  .tab-button:not(.active):hover {
    background: rgba(224, 229, 236, 0.3);
  }

  .tab-content {
    display: block !important;
  }

  .tab-content.hidden {
    display: none !important;
  }

  .week-nav-button {
    min-width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .week-nav-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .week-nav-button:active {
    transform: scale(0.95);
  }

  .flagged-notification {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px rgba(0,0,0,0.1), -6px -6px 12px rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
  }

  .flagged-notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }

  .flagged-notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  }

  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
  }

  .toast {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .toast.show {
    transform: translateX(0);
    opacity: 1;
  }

  .toast.success {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .toast .toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .toast .toast-message {
    flex-grow: 1;
  }

  .toast .toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
  }

  .toast .toast-close:hover {
    opacity: 1;
  }

  .neo-teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .neo-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .neo-rose {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .neo-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .neo-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .neo-pink-blue {
    background: linear-gradient(135deg, #fbb6ce 0%, #a7c7e7 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .neo-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
  }

  .conflict-shift {
    position: relative;
    border: 3px solid #ef4444 !important;
    box-shadow: 
      0 0 0 1px #ef4444,
      4px 4px 8px rgba(239, 68, 68, 0.3),
      -4px -4px 8px rgba(255, 255, 255, 0.3) !important;
  }
  
  .completed-shift {
    position: relative;
    opacity: 0.7;
  }

  .conflict-warning {
    display: inline-flex;
    align-items: center;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
  }

  .save-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
  }

  .conflict-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  }

  .conflict-banner i {
    font-size: 1.2rem;
  }

  .conflict-info-area {
    background: linear-gradient(145deg, #f0f1f3, #e6e8eb);
    border-radius: 15px;
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: 
      8px 8px 16px #d1d3d6,
      -8px -8px 16px #ffffff;
  }

  .conflict-info-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .unresolved-shift {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 
      4px 4px 8px #d6d8db,
      -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
  }

  .unresolved-shift:hover {
    box-shadow: 
      6px 6px 12px #d1d3d6,
      -6px -6px 12px #ffffff;
    transform: translateY(-1px);
  }

  .unresolved-shift:last-child {
    margin-bottom: 0;
  }

  .shift-client-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
  }

  .shift-requirement {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .shift-time-info {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .shift-service-info {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  #accounting-content.hidden,
  #accounting-content.tab-content.hidden {
    display: none !important;
  }

  #accounting-content {
    display: none !important;
  }

#accounting-content.tab-content:not(.hidden) {
  display: block !important;
}

.manager-stack-section + .manager-stack-section {
  margin-top: 2rem;
}

/* Add Client Form Animation */
#addClientSection {
    transition: all 0.3s ease-in-out;
    opacity: 1;
  }

  #addClientSection.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  /* Add User Form Animation */
  #addUserSection {
    transition: all 0.3s ease-in-out;
    opacity: 1;
  }

  #addUserSection.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  /* Pending Invoices Glow Animation */
  @keyframes purple-glow {
    0%, 100% {
      filter: drop-shadow(0 0 1px rgba(168, 85, 247, 0.4)) drop-shadow(0 0 10px rgba(168, 85, 247, 0.2));
    }
    50% {
      filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.7)) drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
    }
  }

  #pending-invoices-card.glow-pending {
    animation: purple-glow 2.5s ease-in-out infinite !important;
  }

  @keyframes electric-glow {
    0%, 100% {
      filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.5)) drop-shadow(0 0 12px rgba(250, 204, 21, 0.3));
    }
    20% {
      filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.7)) drop-shadow(0 0 20px rgba(250, 204, 21, 0.5));
    }
    40% {
      filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.9)) drop-shadow(0 0 30px rgba(234, 179, 8, 0.6));
    }
    60% {
      filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.8)) drop-shadow(0 0 22px rgba(250, 204, 21, 0.5));
    }
    80% {
      filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6)) drop-shadow(0 0 16px rgba(250, 204, 21, 0.4));
    }
  }

  .electric-glow {
    animation: electric-glow 1.8s ease-in-out infinite;
  }




