/*
 * AGGRESSIVE LIGHT MODE ENFORCEMENT
 * Forces all violet/dark elements to white/light
 */

/* CRITICAL: Override SPECIFIC classes used in the app */

/* Violet Cards -> Soft Blue/White */
.bg-gradient-to-br.from-violet-50.to-violet-100,
.from-violet-50 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
}

.bg-violet-100 {
  background: #eff6ff !important;
}

.bg-violet-50 {
  background: #f0f9ff !important;
}

/* Text colors */
.text-violet-600,
.text-violet-700,
.text-violet-800 {
  color: #1e40af !important; /* Blue instead of violet */
}

/* Lavender to Light Blue */
.bg-lavender-100,
.p-3.bg-lavender-100 {
  background: #e0f2fe !important;
}

.from-lavender-50 {
  background: #f0f9ff !important;
}

.to-sky-50 {
  background: #f0f9ff !important;
}

.text-lavender-500 {
  color: #0ea5e9 !important;
}

/* Rose/Pink to Soft Coral */
.bg-gradient-to-br.from-rose-50.to-rose-100,
.from-rose-50 {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

.bg-rose-100,
.bg-rose-50 {
  background: #fef2f2 !important;
}

.text-rose-600,
.text-rose-700,
.text-rose-800 {
  color: #dc2626 !important;
}

/* Keep borders visible */
.border-violet-200 {
  border-color: #bfdbfe !important;
}

.border-rose-200 {
  border-color: #fecaca !important;
}

/*
 * MODERN FINTECH LIGHT MODE - 2025
 * Clean, bright, professional finance dashboard
 * Inspired by: Stripe, Apple, Linear, Revolut (light mode)
 */

/* ===========================
   DESIGN SYSTEM & VARIABLES
   =========================== */
:root {
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-tertiary: #f0f4f8;
  
  /* Brand Colors */
  --primary: #0066ff;
  --primary-light: #3385ff;
  --primary-dark: #0052cc;
  --secondary: #7c3aed;
  --secondary-light: #9b6bff;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #ef4444;
  --danger-light: #f87171;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-on-primary: #ffffff;
  
  /* Border & Shadow */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Spacing */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===========================
   GLOBAL OVERRIDES
   =========================== */
* {
  font-family: var(--font-family) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ULTRA AGGRESSIVE: Target EVERY possible violet/purple class */
/* NOW WITH SOFT COLORS instead of white */

div[class*="violet"],
div[class*="purple"],
div[class*="lavender"] {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  color: #1e40af !important;
}

div[class*="rose"] {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
  color: #be123c !important;
}

button[class*="violet"],
button[class*="purple"] {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
}

button[class*="emerald"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

section[class*="violet"],
section[class*="purple"] {
  background: #f0f9ff !important;
}

/* Target all Tailwind utility classes */
.bg-violet-50, .bg-violet-100, .bg-violet-200, .bg-violet-300 {
  background-color: #f0f9ff !important;
  background-image: none !important;
}

.bg-violet-400, .bg-violet-500, .bg-violet-600, .bg-violet-700,
.bg-violet-800, .bg-violet-900 {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1e40af !important;
}

.bg-rose-50, .bg-rose-100, .bg-rose-200, .bg-rose-300 {
  background-color: #fff1f2 !important;
  background-image: none !important;
}

.bg-rose-400, .bg-rose-500, .bg-rose-600, .bg-rose-700,
.bg-rose-800, .bg-rose-900 {
  background: linear-gradient(135deg, #fecdd3 0%, #fda4af 100%) !important;
  color: #be123c !important;
}

.bg-lavender-50, .bg-lavender-100, .bg-lavender-200, .bg-lavender-300 {
  background-color: #f0f9ff !important;
  background-image: none !important;
}

/* All gradients to soft pastels */
.from-violet-50, .from-violet-100, .from-violet-500,
.to-violet-50, .to-violet-100, .to-violet-500 {
  background-image: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%) !important;
}

.from-rose-50, .from-rose-100, .from-rose-500,
.to-rose-50, .to-rose-100, .to-rose-500 {
  background-image: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%) !important;
}

.from-lavender-50, .from-lavender-100,
.to-lavender-50, .to-lavender-100 {
  background-image: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}

/* Main Container */
#root {
  min-height: 100vh;
  background: var(--bg-secondary);
}

/* ===========================
   MODERN CARD SYSTEM
   =========================== */
.card,
[class*="bg-slate-800"],
[class*="bg-slate-900"],
[class*="bg-gray-800"],
[class*="bg-gray-900"] {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
[class*="bg-slate-800"]:hover,
[class*="bg-slate-900"]:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

/* Glass Card Variant */
.glass-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ===========================
   MODERN BUTTONS (uiverse.io style)
   =========================== */
button,
.btn,
[class*="bg-blue-"],
[class*="bg-purple-"],
[class*="bg-green-"],
[class*="bg-red-"] {
  position: relative;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
}

/* Primary Button */
button.primary,
.btn-primary,
[class*="bg-blue-500"],
[class*="bg-blue-600"] {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--text-on-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

button.primary:hover,
.btn-primary:hover,
[class*="bg-blue-500"]:hover,
[class*="bg-blue-600"]:hover {
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
  transform: translateY(-2px);
}

button.primary:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

/* Secondary Button */
button.secondary,
.btn-secondary,
[class*="bg-purple-500"],
[class*="bg-purple-600"] {
  background: linear-gradient(135deg, var(--secondary) 0%, #6d28d9 100%) !important;
  color: var(--text-on-primary) !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

button.secondary:hover,
.btn-secondary:hover {
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

/* Success Button */
button.success,
.btn-success,
[class*="bg-green-500"],
[class*="bg-green-600"] {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
  color: var(--text-on-primary) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

button.success:hover,
.btn-success:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

/* Danger Button */
button.danger,
.btn-danger,
[class*="bg-red-500"],
[class*="bg-red-600"] {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%) !important;
  color: var(--text-on-primary) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

button.danger:hover,
.btn-danger:hover {
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

/* Ghost Button */
button.ghost,
.btn-ghost {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none;
}

button.ghost:hover,
.btn-ghost:hover {
  background: var(--bg-tertiary) !important;
  border-color: var(--text-tertiary) !important;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
  color: white !important;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  z-index: 1000;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.45);
  transform: scale(1.05) translateY(-2px);
}

.fab:active {
  transform: scale(0.95);
}

/* Button Ripple Effect */
button::after,
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::after,
.btn:active::after {
  width: 300px;
  height: 300px;
}

/* ===========================
   TEXT & TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6,
[class*="text-"] {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.text-secondary,
[class*="text-gray-400"],
[class*="text-gray-500"],
[class*="text-slate-400"] {
  color: var(--text-secondary) !important;
}

.text-tertiary,
[class*="text-gray-300"] {
  color: var(--text-tertiary) !important;
}

/* Modern Heading Styles */
.dashboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ===========================
   STAT CARDS & METRICS
   =========================== */
.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0;
}

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

.stat-change {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* ===========================
   PROGRESS BARS
   =========================== */
.progress-container {
  background: var(--bg-tertiary);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Success Progress */
.progress-bar.success {
  background: linear-gradient(90deg, var(--success) 0%, var(--success-light) 100%);
}

/* Warning Progress */
.progress-bar.warning {
  background: linear-gradient(90deg, var(--warning) 0%, var(--warning-light) 100%);
}

/* Danger Progress */
.progress-bar.danger {
  background: linear-gradient(90deg, var(--danger) 0%, var(--danger-light) 100%);
}

/* ===========================
   BADGES & TAGS
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
}

.badge.primary {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  border-color: rgba(0, 102, 255, 0.2);
}

.badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

.badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ===========================
   INPUT & FORM ELEMENTS
   =========================== */
input,
textarea,
select {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease;
  font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary) !important;
}

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

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--text-primary);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

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

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

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

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

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Stagger Animation */
.stagger-item {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

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

/* ===========================
   LOADING STATES
   =========================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ===========================
   EMPTY STATES
   =========================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 2rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   DARK MODE OVERRIDES (Force Light Mode)
   =========================== */
html, html.dark {
  color-scheme: light !important;
}

.dark\:bg-gray-800:is(.dark *),
.dark\:bg-gray-900:is(.dark *),
.dark\:bg-slate-800:is(.dark *),
.dark\:bg-slate-900:is(.dark *),
[class*="dark:bg-gray-8"],
[class*="dark:bg-gray-9"],
[class*="dark:bg-slate-8"],
[class*="dark:bg-slate-9"] {
  background: var(--bg-primary) !important;
}

.dark\:bg-gray-700:is(.dark *),
[class*="dark:bg-gray-7"] {
  background: var(--bg-secondary) !important;
}

.dark\:text-white:is(.dark *),
.dark\:text-gray-100:is(.dark *),
.dark\:text-gray-200:is(.dark *),
[class*="dark:text-white"],
[class*="dark:text-gray-1"],
[class*="dark:text-gray-2"] {
  color: var(--text-primary) !important;
}

.dark\:text-gray-400:is(.dark *),
.dark\:text-gray-500:is(.dark *),
[class*="dark:text-gray-4"],
[class*="dark:text-gray-5"] {
  color: var(--text-secondary) !important;
}

.dark\:border-gray-700:is(.dark *),
.dark\:border-gray-600:is(.dark *),
[class*="dark:border-gray"] {
  border-color: var(--border-color) !important;
}

/* Override all dark backgrounds to light */
.bg-slate-800,
.bg-slate-900,
.bg-gray-800,
.bg-gray-900 {
  background: var(--bg-primary) !important;
}

.bg-slate-700,
.bg-gray-700 {
  background: var(--bg-secondary) !important;
}

/* Text colors override */
.text-white,
.text-gray-100,
.text-gray-200 {
  color: var(--text-primary) !important;
}

.text-gray-400,
.text-gray-500,
.text-slate-400 {
  color: var(--text-secondary) !important;
}

.text-gray-300,
.text-slate-300 {
  color: var(--text-tertiary) !important;
}

/* ===========================
   PLANNING & GOALS CENTER
   =========================== */
/* ===========================
   FINANCIAL HEALTH CARD (MAIN HERO)
   =========================== */
.financial-health-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xl);
  animation: fadeIn 0.8s ease;
}

.financial-health-card h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

#net-result {
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-mini {
  text-align: center;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-mini-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-mini-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* ===========================
   INSIGHTS PANEL
   =========================== */
.insights-panel {
  animation: fadeIn 0.8s ease 0.2s backwards;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.insight-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.insight-card.warning {
  border-left: 4px solid var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.insight-card.info {
  border-left: 4px solid var(--primary);
  background: rgba(0, 102, 255, 0.05);
}

.insight-card.success {
  border-left: 4px solid var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.insight-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.insight-content {
  flex: 1;
}

.insight-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* ===========================
   GLOBAL SEARCH & FILTERS
   =========================== */
.global-search-bar {
  animation: fadeIn 0.8s ease 0.3s backwards;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-primary);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  pointer-events: none;
}

.filters-group {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--bg-tertiary);
}

.chip-close {
  font-size: 1.125rem;
  font-weight: 700;
  opacity: 0.6;
}

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

/* ===========================
   PLANNING & GOALS CENTER
   =========================== */
.planning-center {
  max-width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.planning-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.tab-btn {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: -2px;
}

.tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  background: var(--bg-secondary);
}

.tab-icon {
  font-size: 1.5rem;
}

.tab-label {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

/* ===========================
   FORECAST TAB STYLES
   =========================== */
.forecast-section {
  padding: 20px 0;
}

.chart-container {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.forecast-chart {
  width: 100%;
  min-height: 300px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 20px;
}

.simple-chart {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  position: relative;
  min-height: 20px;
}

.chart-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}

.chart-bar:hover .bar-tooltip {
  opacity: 1;
}

.chart-label {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

.forecast-card {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.forecast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scenario-section {
  background: var(--bg-secondary);
}

.scenario-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  outline: none;
  -webkit-appearance: none;
}

.scenario-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.scenario-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
}

.forecast-table-container {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.forecast-table table {
  width: 100%;
  border-collapse: collapse;
}

.forecast-table th {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 12px 8px;
}

.forecast-table td {
  padding: 12px 8px;
  color: var(--text-primary);
}

.forecast-table tr:hover {
  background: var(--bg-primary);
}

/* ===========================
   GOALS TAB STYLES
   =========================== */
.goals-section {
  padding: 20px 0;
}

.main-goal-card {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.goal-progress-container {
  margin-top: 16px;
}

.goals-list {
  margin-top: 24px;
}

.goal-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.goal-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.streak-section {
  box-shadow: var(--shadow-lg);
}

.mini-calendar {
  margin-top: 12px;
}

.milestones-section {
  margin-top: 24px;
}

.milestone-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.milestone-item:hover {
  transform: translateX(4px);
}

/* ===========================
   DEBT TAB STYLES
   =========================== */
.debt-section {
  padding: 20px 0;
}

.strategy-selector {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.strategy-card {
  padding: 20px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.strategy-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.strategy-card.active {
  border-color: var(--primary);
  background: rgba(0, 102, 255, 0.05);
  box-shadow: var(--shadow-md);
}

.strategy-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.strategy-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.strategy-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.debt-free-card {
  box-shadow: var(--shadow-xl);
  animation: pulse 3s infinite;
}

.metric-card {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-section {
  margin-top: 24px;
}

.timeline-chart {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.debt-list {
  margin-top: 24px;
}

.debt-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.debt-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.strategy-tip {
  animation: fadeIn 0.5s ease;
}

/* ===========================
   RESPONSIVE - PLANNING CENTER
   =========================== */
@media (max-width: 768px) {
  #net-result {
    font-size: 3rem;
  }

  .financial-health-card {
    padding: 24px 16px;
  }

  .stat-mini {
    padding: 12px;
  }

  .stat-mini-value {
    font-size: 1.25rem;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .global-search-bar .flex {
    flex-direction: column;
  }

  .filters-group {
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  .planning-center {
    padding: 16px;
  }

  .tab-navigation {
    gap: 4px;
  }

  .tab-btn {
    padding: 12px 8px;
    font-size: 0.75rem;
  }

  .tab-icon {
    font-size: 1.25rem;
  }

  .chart-bars {
    gap: 4px;
  }

  .grid.grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .forecast-table {
    overflow-x: auto;
  }
}

/* ===========================
   ADDITIONAL UTILITY CLASSES
   =========================== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.positive {
  color: var(--success);
}

.positive::before {
  content: '↑ ';
}

.negative {
  color: var(--danger);
}

.negative::before {
  content: '↓ ';
}

.grid {
  display: grid;
}

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: var(--border-color); }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }

/* ===========================
   SMOOTH SCROLLING
   =========================== */
html {
  scroll-behavior: smooth;
}

/* ===========================
   SECTION TITLES
   =========================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

/* ===========================
   EMPTY STATES
   =========================== */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

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

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-card {
  height: 120px;
  width: 100%;
}

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

/* ===========================
   MICRO-INTERACTIONS
   =========================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

/* ===========================
   TREND ARROWS
   =========================== */
.trend-up {
  color: var(--success);
}

.trend-up::before {
  content: '↗ ';
}

.trend-down {
  color: var(--danger);
}

.trend-down::before {
  content: '↘ ';
}

.trend-neutral {
  color: var(--text-tertiary);
}

.trend-neutral::before {
  content: '→ ';
}

/* ===========================
   CATEGORY BUDGETING
   =========================== */
.category-budget-card {
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

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

.category-budget-card.over-budget {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

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

.category-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.category-limit {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.category-progress {
  margin: 12px 0;
}

.category-spent {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.over-budget-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--danger);
  font-weight: 600;
}

/* ===========================
   PAGE TRANSITIONS
   =========================== */
.page-transition {
  animation: pageEnter 0.6s ease;
}

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

/* ===========================
   COLORFUL CARD VARIATIONS
   =========================== */

/* Success Card - Green tones */
.card-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
  border-left: 4px solid #10b981;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Warning Card - Amber tones */
.card-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

/* Danger Card - Rose tones */
.card-danger {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-left: 4px solid #ef4444;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Info Card - Blue tones */
.card-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0066ff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.1);
}

/* Purple Accent Card - Soft Purple */
.card-accent {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-left: 4px solid #7c3aed;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

/* ===========================
   COLORED BADGES & PILLS
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.badge-warning {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  color: #92400e;
}

.badge-danger {
  background: linear-gradient(135deg, #fecdd3 0%, #fda4af 100%);
  color: #9f1239;
}

.badge-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

/* ===========================
   ICON CONTAINERS
   =========================== */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-circle.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.icon-circle.warning {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  color: #92400e;
}

.icon-circle.danger {
  background: linear-gradient(135deg, #fecdd3 0%, #fda4af 100%);
  color: #9f1239;
}

.icon-circle.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

/* ===========================
   COLORED PROGRESS BARS
   =========================== */
.progress-success .progress-bar-fill {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.progress-warning .progress-bar-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.progress-danger .progress-bar-fill {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.progress-info .progress-bar-fill {
  background: linear-gradient(90deg, #0066ff 0%, #3385ff 100%);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

/* ===========================
   HOVER GLOW EFFECTS
   =========================== */
.card-hover-glow {
  transition: all 0.3s ease;
}

.card-hover-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 102, 255, 0.15);
}

.card-success:hover {
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.card-warning:hover {
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.2);
}

.card-danger:hover {
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
}

.card-info:hover {
  box-shadow: 0 12px 24px rgba(0, 102, 255, 0.2);
}
/* ===========================
   PLANNING MODAL STYLES
   =========================== */
.planning-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

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

.planning-modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

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

.planning-modal-header {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: white;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.planning-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.planning-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.planning-help {
  color: #64748b;
  margin: 0 0 24px 0;
  font-size: 15px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-radius: 10px;
  border-left: 4px solid #0066ff;
}

.no-entries {
  text-align: center;
  color: #94a3b8;
  padding: 40px 20px;
  font-size: 15px;
}

#salary-entries,
#payment-entries {
  margin-bottom: 30px;
}

.entry-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.entry-item:hover {
  border-color: #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
  transform: translateX(4px);
}

.entry-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.entry-month {
  background: #0066ff;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.entry-amount {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
}

.entry-desc {
  color: #64748b;
  font-size: 14px;
  flex: 1;
}

.entry-delete {
  background: transparent;
  border: 2px solid #fee2e2;
  color: #ef4444;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.entry-delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
  transform: scale(1.1);
}

.add-entry-form {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px dashed #0066ff;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.add-entry-form h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder {
  color: #cbd5e1;
}

.form-hint {
  font-size: 12px;
  color: #94a3b8;
}

.add-entry-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.add-entry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

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

.planning-modal-footer {
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  padding: 20px 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 2px solid #cbd5e1;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-primary {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

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

/* Mobile Responsive */
@media (max-width: 640px) {
  .planning-modal {
    padding: 10px;
  }

  .planning-modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .planning-modal-header {
    padding: 20px;
  }

  .planning-modal-header h2 {
    font-size: 20px;
  }

  .planning-modal-body {
    padding: 20px;
  }

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

  .entry-info {
    flex-wrap: wrap;
    gap: 8px;
  }

  .planning-modal-footer {
    padding: 16px 20px;
    flex-direction: column-reverse;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}