@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Netro Brand Palette (from design sheet) */
  --bg-base: #070d18;
  --bg-surface: #0a111e;
  --bg-card: #0f172a;
  --bg-card-elevated: #131d31;
  --bg-card-hover: #1a263d;
  --bg-input: #0b1322;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(0, 229, 168, 0.4);
  --border-active-cyan: rgba(0, 229, 168, 0.6);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Accent Colors (Exact Hex from Design Spec) */
  --cyan-primary: #00e5a8;     /* #00E5A8 - Netro Mint / Emerald */
  --cyan-glow: rgba(0, 229, 168, 0.25);
  --blue-primary: #008bff;     /* #008BFF - Electric Blue */
  --blue-glow: rgba(0, 139, 255, 0.25);
  --indigo-accent: #6366f1;    /* #6366F1 - Indigo Purple */
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --amber-warn: #f59e0b;       /* #F59E0B - Amber Warning */
  --amber-glow: rgba(245, 158, 11, 0.25);
  --red-danger: #ef4444;       /* #EF4444 - Coral Red Danger */
  --red-glow: rgba(239, 68, 68, 0.25);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 24px rgba(0, 229, 168, 0.22);
  --shadow-glow-blue: 0 0 24px rgba(0, 139, 255, 0.22);
  --shadow-glow-danger: 0 0 24px rgba(239, 68, 68, 0.25);

  /* Animation Timings */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 139, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0, 229, 168, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #050a12 0%, #070d18 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
}

/* Master App Shell Grid */
.netro-app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar Navigation */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
}

/* Top Header Bar */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 17, 30, 0.75);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 90;
}

/* Content Container */
.content-area {
  padding: 2rem;
  flex: 1;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* View Sections Switcher (Tab Pages) */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.view-section.active {
  display: block;
}

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

/* Footer Feature Bar */
.brand-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 13, 24, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
    min-width: 200px;
  }
  .content-area {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .netro-app-shell {
    flex-direction: column;
  }
  .sidebar {
    display: none; /* Mobile switches to bottom navigation */
  }
  .top-navbar {
    padding: 1rem 1.25rem;
  }
  .content-area {
    padding: 1rem;
    margin-bottom: 70px; /* Space for mobile bottom bar */
  }
}
