:root {
  /* Core Colors */
  --bg-deep: #000000;
  --bg-card: #0a0a0a;
  --bg-sidebar: #050505;
  --bg-glass: rgba(10, 10, 10, 0.7);
  
  /* Gold Palette */
  --accent-gold: #D4AF37; /* Metallic Gold */
  --accent-gold-light: #F1D592;
  --accent-gold-dark: #AA8A2E;
  --accent-gold-glow: rgba(212, 175, 55, 0.3);
  
  /* Text Colors */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-gold: #D4AF37;
  --text-on-gold: #000000;
  
  /* Borders & Shadows */
  --border-gold: rgba(212, 175, 55, 0.2);
  --border-gold-bright: rgba(212, 175, 55, 0.5);
  --border-light: rgba(255, 255, 255, 0.05);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #AA8A2E 100%);
  --gradient-gold-hover: linear-gradient(135deg, #F1D592 0%, #D4AF37 100%);
  --gradient-dark: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 100%);
  
  /* Effects */
  --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 10px 40px rgba(0, 0, 0, 0.9);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styling */
body {
  background: var(--gradient-dark) !important;
  color: var(--text-main) !important;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-gold) !important;
}

.text-accent-orange, .text-orange-500 {
  color: var(--accent-gold) !important;
}

/* Cards & Panels */
.premium-card, .glass-panel, .card-inner {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-gold) !important;
  box-shadow: var(--shadow-gold-lg) !important;
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
}

/* Buttons */
.btn-premium, .btn-gradient, button[type="submit"], .btn-primary {
  background: var(--gradient-gold) !important;
  color: var(--text-on-gold) !important;
  font-weight: 700 !important;
  border-radius: 1rem !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  box-shadow: var(--shadow-gold) !important;
  transition: var(--transition) !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-premium:hover, .btn-gradient:hover, button[type="submit"]:hover {
  background: var(--gradient-gold-hover) !important;
  box-shadow: 0 0 20px var(--accent-gold-glow) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* Inputs & Forms */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"],
select, 
textarea,
.input-field {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-gold) !important;
  color: var(--text-main) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
}

input:focus, select:focus, textarea:focus, .input-field:focus {
  border-color: var(--accent-gold) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 15px var(--accent-gold-glow) !important;
  outline: none !important;
}

label {
  color: var(--text-muted) !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Sidebar & Navigation */
#sidebar {
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--border-gold) !important;
}

.nav-item {
  color: var(--text-muted) !important;
  transition: var(--transition) !important;
}

.nav-item:hover {
  color: var(--accent-gold) !important;
  background: rgba(212, 175, 55, 0.05) !important;
}

.nav-active, .nav-item.active {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid var(--border-gold) !important;
  color: var(--accent-gold) !important;
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.05) !important;
}

/* Progress Bars */
.fsw-progress-bg {
  background: rgba(255, 255, 255, 0.05) !important;
}

.fsw-progress-bar {
  background: var(--gradient-gold) !important;
  box-shadow: 0 0 15px var(--accent-gold-glow) !important;
}

/* Tables */
table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

tr {
  background: rgba(255, 255, 255, 0.02) !important;
  transition: var(--transition);
}

tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

th {
  color: var(--text-gold) !important;
  font-weight: 600 !important;
  padding: 1rem !important;
}

td {
  padding: 1rem !important;
  border-top: 1px solid var(--border-light) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

/* Icons */
.lucide, i {
  color: var(--accent-gold) !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}

/* Badges */
.badge-active {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Animations */
@keyframes gold-pulse {
  0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
  100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
}

.animate-gold-pulse {
  animation: gold-pulse 2s ease-in-out infinite alternate;
}
