/* ==========================================================================
   PERSONAL HUB - BASE CSS (Modern Obsidian Glass & Command Center UI)
   ========================================================================== */

:root {
  /* Ultra-refined Obsidian Palette */
  --bg-body: #07080b;
  --bg-shell: #0a0b10;
  --bg-sidebar: #08090e;
  --bg-header: rgba(9, 10, 15, 0.82);
  --bg-card: rgba(14, 16, 23, 0.72);
  --bg-card-hover: rgba(20, 23, 34, 0.88);
  --bg-card-elevated: rgba(24, 28, 42, 0.95);
  --bg-input: rgba(10, 12, 18, 0.9);
  --bg-elevated: #151824;
  --bg-subtle: rgba(255, 255, 255, 0.025);

  /* Modern Glass Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.65);
  --border-active: rgba(255, 255, 255, 0.18);
  --border-highlight: rgba(255, 255, 255, 0.08);

  /* Clean Typography Tokens */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-dark: #0f172a;

  /* Vibrant Accent Palette with Soft Glows */
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-glow: rgba(99, 102, 241, 0.28);
  --indigo-bg: rgba(99, 102, 241, 0.12);
  --indigo-border: rgba(99, 102, 241, 0.3);

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);

  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-bg: rgba(244, 63, 94, 0.12);
  --rose-border: rgba(244, 63, 94, 0.3);

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-bg: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.3);

  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.12);
  --purple-border: rgba(168, 85, 247, 0.3);

  /* Border Radii */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Precision Shadows & Specular Highlights */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-subtle), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border-medium), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 30px -4px var(--indigo-glow);
  --shadow-modal: 0 25px 60px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--border-active), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-input: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Base Resets & Font Smoothing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(34, 211, 238, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 0% 70%, rgba(168, 85, 247, 0.04), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   DESKTOP COMMAND CENTER LAYOUT (Sidebar + Main Content Area)
   ========================================================================== */
.desktop-dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* 1. Left Sidebar (Desktop only >= 1024px) */
.desktop-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 275px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    padding: 22px 16px;
    z-index: 60;
    flex-shrink: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }
}

/* 2. Main Content Canvas Wrapper */
.desktop-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: transparent;
  padding-bottom: 96px;
}

@media (min-width: 1024px) {
  .desktop-main-area {
    padding-bottom: 48px;
  }
}

/* Main Content Inner Grid Container */
.app-content {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .app-content {
    padding: 26px 36px;
    gap: 22px;
  }
}
