/* ==========================================================================
   🏛️ NEXGEN ENTERPRISE - SOLID LUXURY DESIGN SYSTEM
   Professional Enterprise SaaS Aesthetic: Solid Slate, Crisp Monochrome Icons, Fixed Sidebar
   ========================================================================== */

:root {
  /* Solid Color Palette - Zero Gradients */
  --bg-app: #090D16;
  --bg-sidebar: #0D1322;
  --bg-card: #131A2B;
  --bg-card-hover: #182238;
  --bg-input: #090D16;

  /* Solid Borders */
  --border-subtle: #1E293B;
  --border-medium: #334155;
  --border-active: #3B82F6;

  /* Solid Brand Accents */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-active: #1E40AF;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Typography */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================
   📌 1. FIXED STATIC SIDEBAR (Does NOT Scroll)
   ========================================== */
.fixed-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 270px;
  height: 100vh;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.main-content-layout {
  margin-left: 270px;
  width: calc(100% - 270px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1023px) {
  .fixed-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fixed-sidebar.open {
    transform: translateX(0);
  }
  .main-content-layout {
    margin-left: 0;
    width: 100%;
  }
}

/* ==========================================
   📦 2. SOLID CARDS & SURFACES
   ========================================== */
.solid-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.solid-card:hover {
  border-color: var(--border-medium);
}

.metric-number {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on, "zero" on;
}

/* ==========================================
   🔘 3. SOLID BUTTONS
   ========================================== */
.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.1s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: #1E293B;
  color: #E2E8F0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #27354A;
  border-color: var(--border-medium);
}

/* ==========================================
   🏷️ 4. SOLID STATUS BADGES
   ========================================== */
.badge-solid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-solid-emerald {
  background-color: #064E3B;
  color: #6EE7B7;
  border: 1px solid #047857;
}

.badge-solid-blue {
  background-color: #1E3A8A;
  color: #93C5FD;
  border: 1px solid #1D4ED8;
}

.badge-solid-amber {
  background-color: #78350F;
  color: #FCD34D;
  border: 1px solid #B45309;
}

.badge-solid-rose {
  background-color: #881337;
  color: #FDA4AF;
  border: 1px solid #BE123C;
}

/* ==========================================
   🔗 5. SIDEBAR NAVIGATION LINKS
   ========================================== */
.nav-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.nav-link-item:hover {
  color: #FFFFFF;
  background-color: #182238;
}

.nav-link-item.active {
  color: #FFFFFF;
  background-color: #2563EB;
}

.nav-link-item.active svg {
  stroke: #FFFFFF;
}

/* ==========================================
   ✨ 6. TAB SWITCHING ANIMATION
   ========================================== */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Form Inputs */
.solid-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.solid-input:focus {
  border-color: var(--primary);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1E293B;
  transition: .25s;
  border-radius: 34px;
  border: 1px solid var(--border-subtle);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
