/* =============================================
   DATA PARTNER — Design System
   Liquid Glass + Neon Effect Theme
   ============================================= */

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
  /* Primary Colors */
  --bg-deep: #050816;
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1538;
  --bg-card: #111842;
  
  /* Neon Colors */
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff00ff;
  --neon-purple: #a855f7;
  --neon-blue: #3b82f6;
  --neon-green: #00ff88;
  --neon-orange: #ff6b35;
  --neon-pink: #ff2d95;
  
  /* Glass Colors */
  --glass-bg: rgba(15, 21, 56, 0.45);
  --glass-bg-hover: rgba(15, 21, 56, 0.65);
  --glass-border: rgba(0, 245, 255, 0.12);
  --glass-border-hover: rgba(0, 245, 255, 0.3);
  --glass-shadow: rgba(0, 245, 255, 0.06);
  
  /* Text Colors */
  --text-primary: #f0f4ff;
  --text-secondary: #94a3c8;
  --text-muted: #5b6b8c;
  --text-accent: #00f5ff;
  
  /* Status Colors */
  --status-success: #00ff88;
  --status-warning: #ffb800;
  --status-error: #ff4d6a;
  --status-info: #00b4ff;
  --status-pending: #ffb800;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #a855f7 50%, #ff00ff 100%);
  --gradient-cyan: linear-gradient(135deg, #00f5ff 0%, #00b4ff 100%);
  --gradient-magenta: linear-gradient(135deg, #ff00ff 0%, #ff2d95 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 245, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(5, 8, 22, 0.8) 100%);
  
  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.3), 0 0 40px rgba(0, 245, 255, 0.1);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.1);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
  --glow-sm: 0 0 10px rgba(0, 245, 255, 0.2);
  --glow-lg: 0 0 30px rgba(0, 245, 255, 0.4), 0 0 60px rgba(0, 245, 255, 0.15), 0 0 100px rgba(0, 245, 255, 0.05);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Navbar height */
  --navbar-height: 72px;
}

/* ===== LIGHT MODE THEME ===== */
[data-theme="light"] {
  /* Primary Colors */
  --bg-deep: #f0f2f5;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-card: #ffffff;
  
  /* Neon Colors (toned down for light) */
  --neon-cyan: #0891b2;
  --neon-magenta: #c026d3;
  --neon-purple: #7c3aed;
  --neon-blue: #2563eb;
  --neon-green: #059669;
  --neon-orange: #ea580c;
  --neon-pink: #db2777;
  
  /* Glass Colors */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.06);
  
  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --text-accent: #0891b2;
  
  /* Status Colors */
  --status-success: #059669;
  --status-warning: #d97706;
  --status-error: #dc2626;
  --status-info: #2563eb;
  --status-pending: #d97706;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #7c3aed 50%, #c026d3 100%);
  --gradient-cyan: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  --gradient-magenta: linear-gradient(135deg, #c026d3 0%, #db2777 100%);
  --gradient-card: linear-gradient(135deg, rgba(8, 145, 178, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
  --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(240, 242, 245, 0.8) 100%);
  
  /* Glow Effects (subtle for light) */
  --glow-cyan: 0 2px 12px rgba(8, 145, 178, 0.15);
  --glow-magenta: 0 2px 12px rgba(192, 38, 211, 0.15);
  --glow-purple: 0 2px 12px rgba(124, 58, 237, 0.15);
  --glow-sm: 0 1px 6px rgba(8, 145, 178, 0.1);
  --glow-lg: 0 4px 20px rgba(8, 145, 178, 0.15);
}

/* Light mode overrides for specific elements */
[data-theme="light"] body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

[data-theme="light"] .bg-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(8, 145, 178, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--bg-deep) 100%);
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .glass-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-card::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar::before {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar.scrolled::before {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-input {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  background: #ffffff;
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .data-table thead {
  background: rgba(8, 145, 178, 0.04);
}

[data-theme="light"] .data-table tbody tr:hover {
  background: rgba(8, 145, 178, 0.03);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

[data-theme="light"] .particle {
  display: none;
}

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

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

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

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Global Image Reset */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:hover {
  color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.4);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 0, 255, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--bg-deep) 100%);
  animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5), 0 0 20px rgba(0, 245, 255, 0.3);
}

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

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

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

@keyframes fadeInRight {
  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); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow-sm); }
  50% { box-shadow: var(--glow-cyan); }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
    text-shadow: 0 0 7px rgba(0,245,255,0.6), 0 0 10px rgba(0,245,255,0.4), 0 0 21px rgba(0,245,255,0.2); 
  }
  20%, 24%, 55% { 
    text-shadow: none; 
  }
}

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

@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

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

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

.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-down { animation: fadeInDown 0.5s ease-out forwards; }
.animate-fade-left { animation: fadeInLeft 0.6s ease-out forwards; }
.animate-fade-right { animation: fadeInRight 0.6s ease-out forwards; }
.animate-scale { animation: scaleIn 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
  position: relative;
  z-index: 1;
}
