:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --mint-50: #f0fdfa;
  --mint-100: #ccfbf1;
  --mint-200: #99f6e4;
  --mint-300: #5eead4;
  --mint-400: #2dd4bf;
  --mint-500: #14b8a6;
  --mint-600: #0d9488;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--mint-50) 50%, var(--slate-50) 100%);
  min-height: 100vh;
}

/* Premium card style */
.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Dark mode adjustments */
.dark body {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 50%, #111827 100%);
}

.dark .card {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Gradient accents */
.gradient-text {
  background: linear-gradient(135deg, var(--emerald-600), var(--mint-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--emerald-500) 0%, var(--mint-500) 100%);
}

.gradient-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(20, 184, 166, 0.95) 100%);
}

/* Sidebar */
.sidebar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .sidebar {
  background: rgba(15, 23, 42, 0.8);
  border-right-color: rgba(255, 255, 255, 0.06);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  color: var(--slate-600);
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, var(--emerald-50), var(--mint-50));
  color: var(--emerald-700);
}

.dark .nav-link {
  color: var(--slate-400);
}

.dark .nav-link:hover,
.dark .nav-link.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-300);
}

/* Bottom nav mobile */
.bottom-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.dark .bottom-nav {
  background: rgba(15, 23, 42, 0.9);
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--mint-500));
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--slate-700);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Form inputs */
.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  color: var(--slate-800);
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  background: white;
}

/* Progress bars */
.progress-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  background: white;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-100), var(--mint-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
}

/* Floating action button */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--mint-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  z-index: 30;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
}

/* Typography */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-800);
  letter-spacing: -0.025em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-600);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--emerald-300);
  border-radius: 9999px;
}

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