/* ============================================================
   ShiftLink — Design System & Global Styles
   Dark mode, Glassmorphism, GPS-inspired aesthetics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --bg-primary:      #080E1E;
  --bg-secondary:    #0D1628;
  --bg-card:         rgba(15, 25, 50, 0.7);
  --bg-card-hover:   rgba(20, 35, 65, 0.85);
  --bg-input:        rgba(255,255,255,0.06);
  --bg-input-focus:  rgba(0, 212, 170, 0.08);

  --accent-teal:     #00D4AA;
  --accent-teal-dim: rgba(0, 212, 170, 0.15);
  --accent-purple:   #7C6FFF;
  --accent-purple-dim: rgba(124, 111, 255, 0.15);
  --accent-blue:     #4DA6FF;

  --text-primary:    #E8F0FE;
  --text-secondary:  #8BA0C0;
  --text-muted:      #4A6080;
  --text-inverse:    #080E1E;

  --border:          rgba(255,255,255,0.08);
  --border-accent:   rgba(0, 212, 170, 0.3);

  /* Status Colors */
  --status-pending:    #F59E0B;
  --status-progress:   #3B82F6;
  --status-done:       #10B981;
  --status-pending-bg: rgba(245,158,11,0.12);
  --status-progress-bg:rgba(59,130,246,0.12);
  --status-done-bg:    rgba(16,185,129,0.12);

  /* Priority Colors */
  --priority-low:    #6EE7B7;
  --priority-medium: #FCD34D;
  --priority-high:   #F87171;
  --priority-low-bg:    rgba(110,231,183,0.1);
  --priority-medium-bg: rgba(252,211,77,0.1);
  --priority-high-bg:   rgba(248,113,113,0.1);

  /* Shift Colors */
  --shift-day:       #FBBF24;
  --shift-night:     #818CF8;
  --shift-both:      #34D399;
  --shift-day-bg:    rgba(251,191,36,0.12);
  --shift-night-bg:  rgba(129,140,248,0.12);
  --shift-both-bg:   rgba(52,211,153,0.12);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(0,212,170,0.15);

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:9999px;

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Courier New', monospace;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Background: Animated Mesh Gradient
   ============================================================ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0,212,170,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(124,111,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 30%, rgba(77,166,255,0.05) 0%, transparent 50%),
    var(--bg-primary);
}

/* Animated dots grid */
.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: meshShift 20s linear infinite;
}

@keyframes meshShift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Navigation Bar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 14, 30, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--accent-teal);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-shift-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-shift-badge.day   { background: var(--shift-day-bg);   color: var(--shift-day); }
.nav-shift-badge.night { background: var(--shift-night-bg); color: var(--shift-night); }

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-inverse);
  cursor: pointer;
  border: 2px solid var(--border-accent);
  transition: box-shadow var(--transition-fast);
}

.nav-avatar:hover { box-shadow: var(--shadow-glow); }

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.nav-dropdown-item.danger:hover {
  background: rgba(248,113,113,0.1);
  color: #F87171;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ============================================================
   Cards (Glassmorphism)
   ============================================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-flat {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::before { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), #00A88C);
  color: #062020;
  box-shadow: 0 4px 15px rgba(0,212,170,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,212,170,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-input);
}

.btn-danger {
  background: rgba(248,113,113,0.15);
  color: #F87171;
  border: 1px solid rgba(248,113,113,0.3);
}

.btn-danger:hover {
  background: rgba(248,113,113,0.25);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Button loading state */
.btn.loading {
  pointer-events: none;
}

.btn.loading .btn-text { opacity: 0.5; }

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================================
   Form Elements
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.925rem;
  padding: 12px 16px;
  transition: all var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238BA0C0' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.8rem;
  color: #F87171;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Status badges */
.badge-pending  { background: var(--status-pending-bg);  color: var(--status-pending); }
.badge-progress { background: var(--status-progress-bg); color: var(--status-progress); }
.badge-done     { background: var(--status-done-bg);     color: var(--status-done); }

/* Priority badges */
.badge-low    { background: var(--priority-low-bg);    color: var(--priority-low); }
.badge-medium { background: var(--priority-medium-bg); color: var(--priority-medium); }
.badge-high   { background: var(--priority-high-bg);   color: var(--priority-high); }

/* Shift badges */
.badge-day   { background: var(--shift-day-bg);   color: var(--shift-day); }
.badge-night { background: var(--shift-night-bg); color: var(--shift-night); }
.badge-both  { background: var(--shift-both-bg);  color: var(--shift-both); }

/* ============================================================
   Task Card
   ============================================================ */
.task-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.task-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.task-card:hover::before { opacity: 1; }

.task-card.priority-high {
  border-left: 3px solid var(--priority-high);
}

.task-card.priority-medium {
  border-left: 3px solid var(--priority-medium);
}

.task-card.priority-low {
  border-left: 3px solid var(--priority-low);
}

.task-card.done {
  opacity: 0.65;
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.task-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.task-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.task-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-card-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-card-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   Stats Cards
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   Filters & Tabs
   ============================================================ */
.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.filter-tab.active {
  background: var(--bg-card);
  color: var(--accent-teal);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(248,113,113,0.1);
  color: #F87171;
  border-color: rgba(248,113,113,0.3);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: flex-end;
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-normal);
  pointer-events: auto;
  font-size: 0.875rem;
}

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

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

.toast-message { flex: 1; color: var(--text-primary); }

.toast.success { border-left: 3px solid var(--status-done); }
.toast.error   { border-left: 3px solid var(--priority-high); }
.toast.info    { border-left: 3px solid var(--accent-teal); }
.toast.warning { border-left: 3px solid var(--status-pending); }

/* ============================================================
   Loading States
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; }
.skeleton-title { height: 20px; width: 60%; }
.skeleton-card {
  height: 140px;
  border-radius: var(--radius-lg);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,212,170,0.2);
  border-top-color: var(--accent-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 4rem;
  opacity: 0.4;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeInUp 0.4s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Stagger animation for cards */
.task-list > *:nth-child(1)  { animation-delay: 0ms; }
.task-list > *:nth-child(2)  { animation-delay: 60ms; }
.task-list > *:nth-child(3)  { animation-delay: 120ms; }
.task-list > *:nth-child(4)  { animation-delay: 180ms; }
.task-list > *:nth-child(5)  { animation-delay: 240ms; }
.task-list > *:nth-child(6)  { animation-delay: 300ms; }
.task-list > *:nth-child(n+7){ animation-delay: 360ms; }

/* ============================================================
   Progress Bar
   ============================================================ */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 24px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   Shift Indicator (header banner)
   ============================================================ */
.shift-header {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.shift-header.day {
  background: var(--shift-day-bg);
  border: 1px solid rgba(251,191,36,0.2);
  color: var(--shift-day);
}

.shift-header.night {
  background: var(--shift-night-bg);
  border: 1px solid rgba(129,140,248,0.2);
  color: var(--shift-night);
}

/* ============================================================
   Note/Comment Section
   ============================================================ */
.note-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeInUp 0.3s ease forwards;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal);
}

.note-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.note-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .form-row { grid-template-columns: 1fr; }

  .modal { padding: 20px; border-radius: var(--radius-lg); }

  .navbar { padding: 0 16px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-tabs { gap: 2px; }
  .filter-tab { padding: 7px 12px; font-size: 0.8rem; }

  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-logo-sub { display: none; }
}
