/* ============================================================
   MINSU DocTrack — Professional Design System
   Premium Dark Theme with MINSU Green & Gold
   Enhanced with Modern UI/UX Principles
   ============================================================ */

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

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Background Colors */
  --bg: #0A0F1C;
  --bg-alt: #0E1525;
  --bg-elevated: #121929;
  --card: #141E33;
  --card-hover: #1A2642;
  --card-elevated: #1C2A47;
  
  /* Border Colors */
  --border: #1E2D45;
  --border-light: #2A3F5F;
  --border-accent: #3A5070;
  
  /* Primary Colors (MINSU Green) */
  --primary: #1B6B3A;
  --primary-light: #28a05a;
  --primary-lighter: #3BC46E;
  --primary-dark: #145a2e;
  --primary-darker: #0F4422;
  --primary-glow: rgba(27,107,58,0.25);
  --primary-glow-strong: rgba(27,107,58,0.4);
  
  /* Accent Colors (Gold) */
  --accent: #F5A623;
  --accent-light: #FFBF4F;
  --accent-dark: #E6941F;
  --accent-glow: rgba(245,166,35,0.2);
  
  /* Text Colors */
  --text: #F0F4F9;
  --text-secondary: #C1CEDC;
  --text-tertiary: #8B9AAD;
  --muted: #6B7A90;
  
  /* Status Colors */
  --danger: #EF4444;
  --danger-light: #FCA5A5;
  --danger-dark: #DC2626;
  --success: #22C55E;
  --success-light: #86EFAC;
  --success-dark: #16A34A;
  --info: #3B82F6;
  --info-light: #93C5FD;
  --info-dark: #2563EB;
  --warning: #F59E0B;
  --warning-light: #FCD34D;
  --warning-dark: #D97706;
  
  /* Border Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.15);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.25);
  --shadow: 0 4px 12px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.35), 0 3px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5), 0 10px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(27,107,58,0.2);
  --shadow-glow-strong: 0 0 40px rgba(27,107,58,0.35);
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}


/* ---------- RESET & BASE ---------- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

a { 
  color: var(--primary-light); 
  text-decoration: none; 
  transition: var(--transition); 
}

a:hover { 
  color: var(--accent); 
  text-decoration: none; 
}

::selection { 
  background: var(--primary); 
  color: #fff; 
}

/* Enhanced Scrollbar */
::-webkit-scrollbar { 
  width: 8px; 
  height: 8px;
}

::-webkit-scrollbar-track { 
  background: var(--bg); 
}

::-webkit-scrollbar-thumb { 
  background: var(--border-light); 
  border-radius: 4px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover { 
  background: var(--muted); 
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}



/* ---------- CARD ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover { 
  border-color: var(--border-light); 
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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



/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.btn:active::after {
  opacity: 1;
  transform: scale(2);
  transition: transform 0s, opacity 0s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,107,58,0.3), 0 1px 3px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,107,58,0.4), 0 3px 8px rgba(0,0,0,0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27,107,58,0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3), 0 1px 3px rgba(0,0,0,0.2);
}

.btn-danger:hover { 
  background: linear-gradient(135deg, #F87171 0%, var(--danger) 100%);
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(239,68,68,0.4), 0 3px 8px rgba(0,0,0,0.25);
}

.btn-danger:active {
  transform: translateY(0);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3), 0 1px 3px rgba(0,0,0,0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-light) 0%, var(--success) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.4), 0 3px 8px rgba(0,0,0,0.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-outline::before { 
  display: none; 
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(27,107,58,0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,107,58,0.15);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-sm { 
  padding: 0.45rem 1rem; 
  font-size: 0.8125rem; 
  border-radius: var(--radius-xs); 
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.btn-block { 
  width: 100%; 
  justify-content: center; 
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}



/* ---------- FORM ---------- */
.form-group { 
  margin-bottom: 1.25rem; 
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  line-height: 1.5;
}

.form-control:hover {
  border-color: var(--border-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 1px 3px rgba(0,0,0,0.1);
  background: var(--bg-alt);
}

.form-control::placeholder { 
  color: var(--muted); 
  opacity: 0.7;
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-alt);
}

select.form-control { 
  cursor: pointer; 
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B7A90' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 1rem center;
  background-size: 14px 10px;
  padding-right: 2.75rem;
  color-scheme: light;
}

select.form-control:focus {
  background-color: var(--bg-alt) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2328a05a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

select.form-control option {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  padding: 8px;
}

textarea.form-control { 
  resize: vertical; 
  min-height: 80px;
  line-height: 1.6;
}

/* Input with icon */
.input-group {
  position: relative;
}

.input-group .form-control {
  padding-left: 2.75rem;
}

.input-group-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.input-group .form-control:focus ~ .input-group-icon {
  color: var(--primary-light);
}



/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: var(--transition);
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.badge-warning  { 
  background: rgba(245,158,11,0.15); 
  color: #FBBF24; 
  border: 1px solid rgba(245,158,11,0.25);
  box-shadow: 0 1px 3px rgba(245,158,11,0.1);
}

.badge-info     { 
  background: rgba(59,130,246,0.15); 
  color: #60A5FA; 
  border: 1px solid rgba(59,130,246,0.25);
  box-shadow: 0 1px 3px rgba(59,130,246,0.1);
}

.badge-primary  { 
  background: rgba(27,107,58,0.18); 
  color: var(--primary-lighter); 
  border: 1px solid rgba(27,107,58,0.3);
  box-shadow: 0 1px 3px rgba(27,107,58,0.1);
}

.badge-success  { 
  background: rgba(34,197,94,0.15); 
  color: #4ADE80; 
  border: 1px solid rgba(34,197,94,0.25);
  box-shadow: 0 1px 3px rgba(34,197,94,0.1);
}

.badge-released { 
  background: rgba(148,163,184,0.15); 
  color: #CBD5E1; 
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 1px 3px rgba(148,163,184,0.1);
}

.badge-danger   { 
  background: rgba(239,68,68,0.15); 
  color: #F87171; 
  border: 1px solid rgba(239,68,68,0.25);
  box-shadow: 0 1px 3px rgba(239,68,68,0.1);
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}



/* ---------- ALERTS ---------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: alertSlide 0.3s ease-out;
  border: 1.5px solid;
  backdrop-filter: blur(8px);
}

@keyframes alertSlide { 
  from { opacity: 0; transform: translateY(-12px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.alert-success { 
  background: rgba(34,197,94,0.12); 
  border-color: rgba(34,197,94,0.3); 
  color: #86EFAC;
  box-shadow: 0 2px 8px rgba(34,197,94,0.15);
}

.alert-danger  { 
  background: rgba(239,68,68,0.12); 
  border-color: rgba(239,68,68,0.3); 
  color: #FCA5A5;
  box-shadow: 0 2px 8px rgba(239,68,68,0.15);
}

.alert-info    { 
  background: rgba(59,130,246,0.12); 
  border-color: rgba(59,130,246,0.3); 
  color: #93C5FD;
  box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}

.alert-warning { 
  background: rgba(245,158,11,0.12); 
  border-color: rgba(245,158,11,0.3); 
  color: #FCD34D;
  box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}



/* ---------- TABLE ---------- */
.table-wrap { 
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 0.875rem; 
}

thead th {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-secondary);
}

tbody tr { 
  transition: var(--transition); 
  background: var(--card);
}

tbody tr:hover { 
  background: var(--card-hover);
  box-shadow: inset 0 0 0 1px var(--border-light);
}

tbody tr:last-child td { 
  border-bottom: none; 
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.table-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}



/* ---------- SIDEBAR LAYOUT ---------- */
.layout { 
  display: flex; 
  min-height: 100vh; 
}

.sidebar {
  width: 280px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}

.sidebar-logo {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-elevated) 100%);
}

.sidebar-logo img { 
  width: 42px; 
  height: 42px; 
  border-radius: var(--radius-sm); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar-logo span { 
  font-weight: 800; 
  font-size: 1rem; 
  line-height: 1.2; 
  color: var(--text);
  letter-spacing: -0.01em;
}

.sidebar-logo small { 
  display: block; 
  font-size: 0.6875rem; 
  color: var(--muted); 
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sidebar-nav { 
  flex: 1; 
  padding: 0.75rem 0; 
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 1rem 1.5rem 0.5rem;
  margin-top: 0.75rem;
  font-weight: 700;
}

.nav-section:first-child {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
  text-decoration: none;
  position: relative;
  margin: 0.125rem 0;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(27,107,58,0.08);
  color: var(--text);
  border-left-color: rgba(27,107,58,0.5);
  text-decoration: none;
}

.nav-item:hover::before {
  width: 100%;
  opacity: 0.05;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(27,107,58,0.18) 0%, rgba(27,107,58,0.05) 100%);
  color: var(--primary-lighter);
  border-left-color: var(--primary-light);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-item.active::before {
  width: 100%;
  opacity: 0.08;
}

.nav-item svg { 
  width: 20px; 
  height: 20px; 
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-item:hover svg,
.nav-item.active svg {
  transform: scale(1.1);
}

.sidebar-footer { 
  padding: 1.25rem 1.5rem; 
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.sidebar-user { 
  display: flex; 
  align-items: center; 
  gap: 0.875rem; 
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 2px 12px rgba(27,107,58,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 2px solid rgba(27,107,58,0.3);
}

.sidebar-user-info { 
  flex: 1; 
  overflow: hidden; 
}

.sidebar-user-info strong { 
  display: block; 
  font-size: 0.875rem; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.sidebar-user-info span { 
  font-size: 0.75rem; 
  color: var(--muted);
  font-weight: 500;
}

.logout-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(239,68,68,0.12);
  border-color: var(--danger);
  color: var(--danger);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(239,68,68,0.2);
}

.logout-btn svg { 
  width: 18px; 
  height: 18px; 
}



/* ---------- MAIN CONTENT ---------- */
.main {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.topbar {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 4px 12px rgba(0,0,0,0.08);
}

.topbar h1 { 
  font-size: 1.125rem; 
  font-weight: 700; 
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar h1::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--primary-glow);
}

.topbar-actions { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
}

.notif-btn { 
  position: relative; 
  background: var(--bg-elevated); 
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted); 
  cursor: pointer; 
  padding: 0.5rem; 
  font-size: 1.125rem; 
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.notif-btn:hover { 
  color: var(--text); 
  transform: scale(1.05);
  border-color: var(--border-light);
  background: var(--card-hover);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: #fff;
  font-size: 0.625rem;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--card);
  animation: pulse 2s infinite;
  box-shadow: 0 2px 6px rgba(239,68,68,0.4);
  padding: 0 0.25rem;
}

@keyframes pulse { 
  0%, 100% { opacity: 1; transform: scale(1); } 
  50% { opacity: 0.8; transform: scale(1.05); } 
}

.page-content { 
  padding: 2rem; 
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}



/* ---------- STAT CARDS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(27,107,58,0.05), transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

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

.stat-card:hover::after {
  opacity: 1;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover .stat-icon::before {
  opacity: 0.3;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0; }
}

.stat-icon svg { 
  width: 28px; 
  height: 28px;
  position: relative;
  z-index: 1;
}

.stat-icon.green  { 
  background: rgba(34,197,94,0.15); 
  color: #4ADE80;
  box-shadow: 0 4px 12px rgba(34,197,94,0.2);
}

.stat-icon.green::before {
  background: radial-gradient(circle, rgba(34,197,94,0.4), transparent);
}

.stat-icon.amber  { 
  background: rgba(245,158,11,0.15); 
  color: #FBBF24;
  box-shadow: 0 4px 12px rgba(245,158,11,0.2);
}

.stat-icon.amber::before {
  background: radial-gradient(circle, rgba(245,158,11,0.4), transparent);
}

.stat-icon.blue   { 
  background: rgba(59,130,246,0.15); 
  color: #60A5FA;
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

.stat-icon.blue::before {
  background: radial-gradient(circle, rgba(59,130,246,0.4), transparent);
}

.stat-icon.red    { 
  background: rgba(239,68,68,0.15); 
  color: #F87171;
  box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}

.stat-icon.red::before {
  background: radial-gradient(circle, rgba(239,68,68,0.4), transparent);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value { 
  font-size: 2rem; 
  font-weight: 800; 
  line-height: 1; 
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.375rem;
  transition: var(--transition);
}

.stat-card:hover .stat-value {
  color: var(--primary-lighter);
}

.stat-label { 
  font-size: 0.8125rem; 
  color: var(--text-tertiary); 
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.stat-change.up {
  color: var(--success);
  background: rgba(34,197,94,0.1);
}

.stat-change.down {
  color: var(--danger);
  background: rgba(239,68,68,0.1);
}



/* ---------- TIMELINE ---------- */
.timeline { 
  display: flex; 
  justify-content: space-between; 
  position: relative; 
  padding: 2rem 0; 
  margin: 1.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.timeline::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 12px var(--primary-glow);
}

.tl-step { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 0.75rem; 
  flex: 1; 
  position: relative; 
  z-index: 1; 
}

.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tl-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: var(--transition);
}

.tl-dot.done {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,107,58,0.4), 0 0 0 4px rgba(27,107,58,0.1);
  transform: scale(1.05);
}

.tl-dot.done::before {
  border-color: var(--primary-light);
  opacity: 0.3;
}

.tl-dot.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-glow), 0 4px 20px rgba(245,166,35,0.4);
  animation: tlPulse 2s infinite;
  transform: scale(1.1);
}

@keyframes tlPulse {
  0%, 100% { 
    box-shadow: 0 0 0 6px var(--accent-glow), 0 4px 20px rgba(245,166,35,0.4); 
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(245,166,35,0.1), 0 6px 24px rgba(245,166,35,0.5); 
  }
}

.tl-label { 
  font-size: 0.75rem; 
  color: var(--muted); 
  text-align: center; 
  font-weight: 500;
  max-width: 120px;
  line-height: 1.4;
}

.tl-label.done { 
  color: var(--primary-lighter); 
  font-weight: 600;
}

.tl-label.active { 
  color: var(--accent-light); 
  font-weight: 700; 
}



/* ---------- AUTH PAGE ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,107,58,0.08) 0%, transparent 70%);
  top: -300px;
  right: -300px;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.05) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  pointer-events: none;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.auth-box { 
  width: 100%; 
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-header { 
  text-align: center; 
  margin-bottom: 2.5rem; 
}

.auth-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(27,107,58,0.35), 0 0 0 8px rgba(27,107,58,0.1);
  position: relative;
}

.auth-logo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  opacity: 0.3;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0; }
}

.auth-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.auth-header h2 { 
  font-size: 1.5rem; 
  margin-bottom: 0.5rem; 
  font-weight: 800; 
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-header p { 
  color: var(--text-tertiary); 
  font-size: 0.9375rem;
  line-height: 1.5;
}

.divider { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  margin: 1.5rem 0; 
}

.divider::before, 
.divider::after { 
  content: ''; 
  flex: 1; 
  height: 1px; 
  background: linear-gradient(90deg, transparent, var(--border), transparent); 
}

.divider span { 
  color: var(--muted); 
  font-size: 0.8125rem;
  font-weight: 500;
}



/* ---------- MODAL ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.25s ease-out;
  padding: 1rem;
}

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

.modal-overlay.show { 
  display: flex; 
}

.modal {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes modalSlideUp { 
  from { opacity: 0; transform: translateY(40px) scale(0.95); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { 
  font-size: 1.125rem; 
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-close {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { 
  color: var(--text); 
  background: var(--card-hover); 
  border-color: var(--border-light);
  transform: rotate(90deg);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}



/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .sidebar { 
    width: 260px; 
  }
  
  .main { 
    margin-left: 260px; 
  }
  
  .stats-grid { 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  }
}

@media (max-width: 768px) {
  .sidebar { 
    transform: translateX(-100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px;
  }
  
  .sidebar.open { 
    transform: translateX(0);
    box-shadow: 8px 0 48px rgba(0,0,0,0.4);
  }
  
  .main { 
    margin-left: 0; 
  }
  
  .stats-grid { 
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.25rem 1rem;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  
  .stat-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .timeline { 
    flex-wrap: wrap; 
    gap: 1.5rem; 
  }
  
  .timeline::before,
  .timeline::after {
    display: none;
  }
  
  .tl-step {
    flex-direction: row;
    width: 100%;
    text-align: left;
  }
  
  .page-content { 
    padding: 1.5rem; 
  }
  
  .topbar { 
    padding: 1rem 1.25rem; 
  }
  
  .topbar h1 {
    font-size: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .table-wrap {
    border-radius: var(--radius-sm);
  }
  
  thead th {
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
  }
  
  tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .page-content {
    padding: 1rem;
  }
  
  .topbar {
    padding: 0.875rem 1rem;
  }
  
  .topbar h1::before {
    display: none;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .modal {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .auth-page {
    padding: 1rem;
  }
  
  .auth-box {
    max-width: 100%;
  }
}



/* ---------- MISC UTILITIES ---------- */
.text-muted { color: var(--muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.section-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-header h2 { 
  font-size: 1.125rem; 
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h2 svg {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
}

.empty-state { 
  text-align: center; 
  padding: 4rem 1.5rem; 
  color: var(--muted);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-state svg { 
  width: 64px; 
  height: 64px; 
  margin: 0 auto 1.5rem; 
  opacity: 0.3; 
  display: block;
  color: var(--muted);
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Divider */
.divider-horizontal {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.5rem 0;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 0.75rem;
  background: var(--card-elevated);
  color: var(--text);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--card) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}



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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations to elements */
.stat-card { 
  animation: fadeInUp 0.5s ease-out backwards; 
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }
.stat-card:nth-child(5) { animation-delay: 0.4s; }
.stat-card:nth-child(6) { animation-delay: 0.5s; }

.card { 
  animation: fadeInUp 0.4s ease-out backwards; 
}

.nav-item {
  animation: slideInRight 0.3s ease-out backwards;
}

.nav-item:nth-child(1) { animation-delay: 0s; }
.nav-item:nth-child(2) { animation-delay: 0.05s; }
.nav-item:nth-child(3) { animation-delay: 0.1s; }
.nav-item:nth-child(4) { animation-delay: 0.15s; }
.nav-item:nth-child(5) { animation-delay: 0.2s; }
.nav-item:nth-child(6) { animation-delay: 0.25s; }
.nav-item:nth-child(7) { animation-delay: 0.3s; }
.nav-item:nth-child(8) { animation-delay: 0.35s; }

/* Smooth page transitions */
.page-content > * {
  animation: fadeIn 0.3s ease-out;
}

/* Hover effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-glow {
  transition: var(--transition);
}

.hover-glow:hover {
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Focus animations */
@keyframes focusRing {
  0% {
    box-shadow: 0 0 0 0 var(--primary-glow-strong);
  }
  100% {
    box-shadow: 0 0 0 4px var(--primary-glow);
  }
}

.form-control:focus {
  animation: focusRing 0.3s ease-out;
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.checkmark-icon {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.5s ease-out forwards;
}

/* Shimmer effect for loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--card) 20%,
    var(--bg-elevated) 40%,
    var(--bg-elevated) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
  transition: 0s;
}

/* Fade in on scroll */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation utility */
.stagger-item {
  animation: fadeInUp 0.5s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }
.stagger-item:nth-child(9) { animation-delay: 0.45s; }
.stagger-item:nth-child(10) { animation-delay: 0.5s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

