/* ============================================
   ATHENACORE 2025 - GOOGLE-INSPIRED DESIGN
   Style: Clean, Minimal with Smart Color Accents
   Colors: White base with Red, Blue, Yellow hues
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  /* Base Colors - Clean White Theme */
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8f9fa;
  --color-surface-elevated: #ffffff;
  
  /* Google-Inspired Accent Colors */
  --google-blue: #4285f4;
  --google-blue-light: #669df6;
  --google-blue-dark: #1967d2;
  --google-blue-subtle: rgba(66, 133, 244, 0.08);
  
  --google-red: #ea4335;
  --google-red-light: #f28b82;
  --google-red-dark: #c5221f;
  --google-red-subtle: rgba(234, 67, 53, 0.08);
  
  --google-yellow: #fbbc04;
  --google-yellow-light: #fdd663;
  --google-yellow-dark: #f29900;
  --google-yellow-subtle: rgba(251, 188, 4, 0.08);
  
  --google-green: #34a853;
  --google-green-light: #81c995;
  --google-green-dark: #188038;
  --google-green-subtle: rgba(52, 168, 83, 0.08);
  
  /* Primary - Blue */
  --primary: var(--google-blue);
  --primary-light: var(--google-blue-light);
  --primary-dark: var(--google-blue-dark);
  --primary-subtle: var(--google-blue-subtle);
  
  /* Accent Colors */
  --accent-red: var(--google-red);
  --accent-yellow: var(--google-yellow);
  
  /* Border & Divider System */
  --border-light: #e8eaed;
  --border-medium: #dadce0;
  --border-dark: #bdc1c6;
  
  /* Text - Google's text hierarchy */
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #80868b;
  --text-disabled: #9aa0a6;
  
  /* Semantic */
  --success: var(--google-green);
  --success-subtle: var(--google-green-subtle);
  --error: var(--google-red);
  --error-subtle: var(--google-red-subtle);
  --warning: var(--google-yellow);
  --warning-subtle: var(--google-yellow-subtle);
  
  /* Shadows - Subtle Google-style elevation */
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 1px 3px 0 rgba(60, 64, 67, 0.15), 0 4px 8px 3px rgba(60, 64, 67, 0.08);
  --shadow-lg: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 8px 12px 6px rgba(60, 64, 67, 0.08);
  --shadow-xl: 0 4px 16px 0 rgba(60, 64, 67, 0.2);
  --shadow-focus: 0 0 0 3px rgba(66, 133, 244, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0.0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ========== THEME 'FEEL' TOKENS (app-wide) ========== */
:root {
 --theme-font: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
 --theme-letter-spacing:0px;
 --theme-content-gap:0.75rem;

 --theme-border-style: solid;
 --theme-border-width:1px;
 --theme-border-opacity:1;

 --theme-blur:0px;
 --theme-saturation:100%;

 --theme-surface-texture: none;
 --theme-surface-elevated-texture: none;

 --theme-radius-sm: var(--radius-sm);
 --theme-radius-md: var(--radius-md);
 --theme-radius-lg: var(--radius-lg);
 --theme-radius-xl: var(--radius-xl);

 --theme-shadow-sm: var(--shadow-sm);
 --theme-shadow-md: var(--shadow-md);
 --theme-shadow-lg: var(--shadow-lg);
}

body {
 font-family: var(--theme-font);
 letter-spacing: var(--theme-letter-spacing);
 background: var(--color-background) !important;
 color: var(--text-primary) !important;
 min-height: 100vh;
 position: relative;
}

/* Ensure all page-level containers inherit theme colors */
body,
html {
 background-color: var(--color-background);
 color: var(--text-primary);
}

.app-shell,
.app-container,
.app-content,
main {
 background-color: transparent;
 color: var(--text-primary);
}

/* Core layout surfaces get texture/blur if theme provides it */
.app-sidebar,
.app-topbar,
.app-footer,
.pill-nav {
 backdrop-filter: blur(var(--theme-blur)) saturate(var(--theme-saturation));
 -webkit-backdrop-filter: blur(var(--theme-blur)) saturate(var(--theme-saturation));
 background-image: var(--theme-surface-texture);
}

.glass-card,
.glass-card-aura {
 background-image: var(--theme-surface-elevated-texture);
 border-width: var(--theme-border-width);
 border-style: var(--theme-border-style);
 box-shadow: var(--theme-shadow-sm);
 border-radius: var(--theme-radius-lg);
}

.button {
 border-width: var(--theme-border-width);
 border-style: var(--theme-border-style);
 box-shadow: var(--theme-shadow-sm);
 border-radius: var(--theme-radius-md);
}

.button:hover { box-shadow: var(--theme-shadow-md); }

.nav-link,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
 border-width: var(--theme-border-width);
 border-style: var(--theme-border-style);
 border-radius: var(--theme-radius-md);
}

/* Ensure readability on dark themes */
html[data-theme],
:root[data-theme] {
 color-scheme: light;
}

html[data-theme="dark"],
html[data-theme="graphite"],
html[data-theme="aurora"],
html[data-theme="glass"],
html[data-theme="neon"] {
 color-scheme: dark;
}

/* Stronger contrast for secondary text on dark */
html[data-theme="dark"] p,
html[data-theme="graphite"] p,
html[data-theme="aurora"] p,
html[data-theme="glass"] p,
html[data-theme="neon"] p {
 color: var(--text-secondary);
}

/* ========== GLOBAL RESETS & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-background);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection - Google Blue */
::selection {
  background: var(--google-blue-subtle);
  color: var(--text-primary);
}

/* Scrollbar - Minimal style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* Focus states - Blue accent */
*:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: 2px;
}

/* ========== CARD SYSTEM ========== */
.glass-card {
  background: var(--color-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.glass-card-aura {
  background: var(--color-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var (--transition-base);
  position: relative;
  z-index: 2;
}

.glass-card-aura:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--google-blue);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: 0.625rem;
  font-weight: 400;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--google-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--google-blue-dark);
}

/* ========== BUTTON SYSTEM ========== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.25px;
}

.button:hover {
  background: var(--color-surface-subtle);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--google-blue);
  border-color: var(--google-blue);
  color: white;
  font-weight: 500;
}

.button-primary:hover {
  background: var(--google-blue-dark);
  border-color: var(--google-blue-dark);
  box-shadow: var(--shadow-md);
}

.button-success {
  background: var(--google-green);
  border-color: var(--google-green);
  color: white;
  font-weight: 500;
}

.button-success:hover {
  background: var(--google-green-dark);
  border-color: var(--google-green-dark);
}

.button-danger {
  background: var(--google-red);
  border-color: var(--google-red);
  color: white;
  font-weight: 500;
}

.button-danger:hover {
  background: var(--google-red-dark);
  border-color: var(--google-red-dark);
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.button-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ========== FORM INPUTS ========== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--google-blue);
  box-shadow: var(--shadow-focus);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-surface);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

input[type="checkbox"]:hover {
  border-color: var(--google-blue);
}

input[type="checkbox"]:checked {
  background: var(--google-blue);
  border-color: var(--google-blue);
}

input[type="checkbox"]:checked::after {
  content: '?';
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ========== LAYOUT SYSTEM ========== */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.app-container {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
 background: transparent !important;
 padding-top: 80px; /* Space for fixed nav */
 position: relative;
 z-index: 1;
}

.app-content {
  flex: 1;
  padding: 1.5rem;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Full width content override */
.app-content.full-width,
.app-content:has(.settings-container) {
 max-width: 100% !important;
 padding: 0 !important;
}

/* =============================================
   APP SHELL & CONTAINER LAYOUT
============================================= */

.app-shell {
    min-height: 100vh;
    background: var(--color-background);
}

.app-container {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
 background: var(--color-background);
}

.app-content {
 flex: 1;
 padding: calc(1rem + var(--theme-content-gap));
 max-width: 100%;
 width: 100%;
 margin: 0 auto;
 background: var(--color-background);
}

/* Footer */
.app-footer {
 padding: 1.5rem;
 text-align: center;
 color: var(--text-tertiary);
 font-size: 0.875rem;
 border-top: 1px solid var(--border-light);
 background: var(--color-surface);
}

/* =============================================
   BLUEPRINT: Dark tech HUD with glowing cyan
============================================= */

html[data-theme="blueprint"],
:root[data-theme="blueprint"] {
 --color-background: #020509;
 --color-surface: rgba(7,16,31,0.95);
 --color-surface-subtle: rgba(34,211,238,0.08);
 --color-surface-elevated: rgba(14,28,50,0.85);

 --text-primary: #e0f7ff;
 --text-secondary: rgba(224,247,255,0.70);
 --text-tertiary: rgba(224,247,255,0.52);

 --border-light: rgba(34,211,238,0.20);
 --border-medium: rgba(34,211,238,0.30);
 --border-dark: rgba(34,211,238,0.45);

 --google-blue: #22d3ee;
 --google-blue-light: #67e8f9;
 --google-blue-dark: #06b6d4;
 --google-blue-subtle: rgba(34,211,238,0.18);

 --google-red: #fb7185;
 --google-yellow: #fbbf24;
 --google-green: #34d399;

 --theme-font: 'JetBrains Mono', 'Courier New', monospace;
 --theme-letter-spacing: 0.02em;
 --theme-border-style: solid;
 --theme-border-width: 1px;
 --theme-radius-md: 6px;
 --theme-radius-lg: 10px;
 --theme-shadow-sm: 0 0 12px rgba(34,211,238,0.25), 0 4px 16px rgba(0,0,0,0.60);
 --theme-shadow-md: 0 0 20px rgba(34,211,238,0.35), 0 8px 24px rgba(0,0,0,0.65);

 --theme-surface-texture: 
 repeating-linear-gradient(0deg, rgba(34,211,238,0.08) 0px, rgba(34,211,238,0.08) 1px, transparent 1px, transparent 40px),
 repeating-linear-gradient(90deg, rgba(34,211,238,0.08) 0px, rgba(34,211,238,0.08) 1px, transparent 1px, transparent 40px);
 background-size: 40px 40px;
}

html[data-theme="blueprint"] body {
 font-family: 'JetBrains Mono', 'Courier New', monospace;
 text-transform: uppercase;
 font-size: 0.85rem;
 letter-spacing: 0.05em;
 background: #020509;
 color: #e0f7ff;
}

html[data-theme="blueprint"] .app-sidebar {
 background: rgba(7,16,31,0.98);
 border-right: 2px solid rgba(34,211,238,0.35);
 box-shadow: inset -4px 0 12px rgba(34,211,238,0.15), 4px 0 20px rgba(0,0,0,0.70);
}

html[data-theme="blueprint"] .sidebar-logo::before,
html[data-theme="blueprint"] .sidebar-logo::after {
 content: "";
 position: absolute;
 width: 32px;
 height: 32px;
 border: 2px solid rgba(34,211,238,0.40);
}

html[data-theme="blueprint"] .sidebar-logo::before {
 top: 0; left: 0;
 border-right: none; border-bottom: none;
}

html[data-theme="blueprint"] .sidebar-logo::after {
 bottom: 0; right: 0;
 border-left: none; border-top: none;
}

html[data-theme="blueprint"] .nav-link {
 background: rgba(34,211,238,0.04);
 border-left: 2px solid transparent;
 margin-bottom: 0.35rem;
 position: relative;
}

html[data-theme="blueprint"] .nav-link::before {
 content: ">";
 position: absolute;
 left: 0.5rem;
 opacity: 0;
 transition: all 0.2s ease;
 color: var(--google-blue);
}

html[data-theme="blueprint"] .nav-link:hover::before,
html[data-theme="blueprint"] .nav-link.active::before {
 opacity: 1;
 left: 0.75rem;
}

html[data-theme="blueprint"] .nav-link span {
 padding-left: 0.5rem;
}

html[data-theme="blueprint"] .nav-link.active {
 background: rgba(34,211,238,0.14);
 border-left: 3px solid var(--google-blue);
 box-shadow: inset 0 0 16px rgba(34,211,238,0.20), 0 0 8px rgba(34,211,238,0.25);
 color: var(--google-blue);
}

html[data-theme="blueprint"] .app-topbar {
 background: rgba(7,16,31,0.98);
 border-bottom: 2px solid rgba(34,211,238,0.30);
 backdrop-filter: blur(16px);
}

html[data-theme="blueprint"] .app-title {
 color: var(--google-blue);
 text-shadow: 0 0 8px rgba(34,211,238,0.60);
}

html[data-theme="blueprint"] .glass-card {
 background: rgba(14,28,50,0.75);
 border: 1px solid rgba(34,211,238,0.25);
 box-shadow: 0 0 16px rgba(34,211,238,0.18), 0 8px 32px rgba(0,0,0,0.65), inset 0 0 12px rgba(34,211,238,0.08);
}

html[data-theme="blueprint"] .button-primary {
 background: rgba(34,211,238,0.18);
 border: 2px solid var(--google-blue);
 color: var(--google-blue);
 text-shadow: 0 0 6px rgba(34,211,238,0.50);
 box-shadow: 0 0 12px rgba(34,211,238,0.25);
}

html[data-theme="blueprint"] input,
html[data-theme="blueprint"] select,
html[data-theme="blueprint"] textarea {
 background: rgba(0,0,0,0.35);
 border: 1px solid rgba(34,211,238,0.25);
 color: var(--text-primary);
}

/* ===== THEME-SPECIFIC PILL NAV STYLING ===== */

/* Blueprint: Tech HUD nav */
html[data-theme="blueprint"] .pill-nav {
 background: rgba(7,16,31,0.90);
 border: 1px solid rgba(34,211,238,0.25);
 box-shadow: 0 0 0 1px rgba(34,211,238,0.10) inset, 0 8px 32px rgba(0,0,0,0.60);
}

html[data-theme="blueprint"] .pill-nav__logo-text,
html[data-theme="blueprint"] .pill-nav__item span,
html[data-theme="blueprint"] .pill-nav__user-name {
 font-family: 'JetBrains Mono', monospace;
 text-transform: uppercase;
 font-size: 0.75rem;
 letter-spacing: 0.05em;
}

html[data-theme="blueprint"] .pill-nav__item.active {
 background: rgba(34,211,238,0.18);
 color: var(--google-blue);
 box-shadow: 0 0 0 1px rgba(34,211,238,0.30) inset;
}

/* Noir: Cinematic minimal nav */
html[data-theme="noir"] .pill-nav {
 background: rgba(11,15,20,0.92);
 border: 1px dashed rgba(255,255,255,0.14);
 box-shadow: 0 12px 40px rgba(0,0,0,0.75);
}

html[data-theme="noir"] .pill-nav__item.active {
 background: rgba(255,255,255,0.08);
 border: 1px dashed rgba(255,255,255,0.18);
 box-shadow: none;
}

/* Retro: Chunky pixel nav */
html[data-theme="retro"] .pill-nav {
 border-radius: 16px;
 border-width: 3px;
 box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}

html[data-theme="retro"] .pill-nav__logo-icon {
 border-radius: 6px;
}

html[data-theme="retro"] .pill-nav__item {
 border-radius: 12px;
 border: 2px solid transparent;
}

html[data-theme="retro"] .pill-nav__item.active {
 border: 2px solid var(--google-blue);
 background: var(--google-blue-subtle);
}

/* Prism: Rainbow gradient nav */
html[data-theme="prism"] .pill-nav {
 background: linear-gradient(135deg, rgba(11,16,32,0.92), rgba(14,21,48,0.92));
 border: 1px solid rgba(255,255,255,0.12);
 box-shadow: 0 0 0 1px rgba(34,211,238,0.10) inset, 0 12px 48px rgba(0,0,0,0.65);
}

html[data-theme="prism"] .pill-nav__item.active {
 background: linear-gradient(135deg, rgba(34,211,238,0.20), rgba(167,139,250,0.18));
 box-shadow: 0 0 12px rgba(34,211,238,0.22);
}

/* Glass: Frosted nav */
html[data-theme="glass"] .pill-nav {
 background: rgba(11,16,32,0.65);
 backdrop-filter: blur(20px) saturate(150%);
 border: 1px solid rgba(255,255,255,0.16);
 box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 16px 64px rgba(0,0,0,0.70);
}

html[data-theme="glass"] .pill-nav__item {
 background: rgba(255,255,255,0.04);
 border: 1px solid rgba(255,255,255,0.08);
}

html[data-theme="glass"] .pill-nav__item.active {
 background: rgba(34,211,238,0.16);
 border: 1px solid rgba(34,211,238,0.30);
 box-shadow: 0 0 12px rgba(34,211,238,0.18);
}

/* Neon: Glowing nav */
html[data-theme="neon"] .pill-nav {
 background: rgba(5,6,10,0.92);
 border: 2px solid rgba(34,211,238,0.30);
 box-shadow: 0 0 0 1px rgba(34,211,238,0.15) inset, 0 0 24px rgba(34,211,238,0.25), 0 12px 48px rgba(0,0,0,0.75);
}

html[data-theme="neon"] .pill-nav__item.active {
 background: rgba(34,211,238,0.14);
 color: var(--google-blue);
 text-shadow: 0 0 2px var(--google-blue);
 box-shadow: 0 0 12px rgba(34,211,238,0.35);
}

/* Aurora: Northern lights nav */
html[data-theme="aurora"] .pill-nav {
 background: rgba(7,10,18,0.85);
 backdrop-filter: blur(16px) saturate(150%);
 border: 1px solid rgba(34,211,238,0.22);
 box-shadow: 0 0 0 1px rgba(34,211,238,0.08) inset, 0 16px 64px rgba(0,0,0,0.65);
}

html[data-theme="aurora"] .pill-nav__item.active {
 background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(52,211,153,0.14));
 box-shadow: 0 0 12px rgba(34,211,238,0.20);
}

/* Paper: Material nav */
html[data-theme="paper"] .pill-nav {
 background: rgba(250,247,242,0.98);
 box-shadow: 0 2px 8px rgba(2,6,23,0.08), 0 8px 24px rgba(2,6,23,0.06);
}

html[data-theme="paper"] .pill-nav__item.active {
 background: rgba(29,78,216,0.12);
 box-shadow: 0 0 0 1px rgba(29,78,216,0.18) inset;
}

/* Studio: Minimal clean nav */
html[data-theme="studio"] .pill-nav {
 background: rgba(247,248,251,0.98);
 box-shadow: 0 1px 3px rgba(2,6,23,0.06), 0 4px 16px rgba(2,6,23,0.04);
}

html[data-theme="studio"] .pill-nav__item.active {
 background: rgba(37,99,235,0.10);
 font-weight: 600;
}

/* Terminal: Matrix nav */
html[data-theme="terminal"] .pill-nav {
 background: #000000;
 border: 1px solid #00ff41;
 border-radius: 0;
 box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

html[data-theme="terminal"] .pill-nav__item {
 border-radius: 0;
 font-family: 'Courier New', monospace;
 text-transform: uppercase;
}

html[data-theme="terminal"] .pill-nav__item.active {
 background: #00ff41;
 color: #000000;
 box-shadow: none;
}

/* Sketch: Hand-drawn nav */
html[data-theme="sketch"] .pill-nav {
 border: 2px solid #2c3e50;
 border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
 background: #ffffff;
 box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

html[data-theme="sketch"] .pill-nav__item {
 font-family: 'Comic Sans MS', cursive;
}

html[data-theme="sketch"] .pill-nav__item.active {
 border: 2px solid #2c3e50;
 border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
 background: transparent;
 font-weight: bold;
}

/* Cosmos: Space nav */
html[data-theme="cosmos"] .pill-nav {
 background: rgba(20, 20, 40, 0.8);
 border: 1px solid rgba(123, 44, 191, 0.5);
 backdrop-filter: blur(12px);
 box-shadow: 0 0 20px rgba(123, 44, 191, 0.3);
}

html[data-theme="cosmos"] .pill-nav__item.active {
 background: rgba(123, 44, 191, 0.3);
 color: #e0e0ff;
 box-shadow: 0 0 10px rgba(123, 44, 191, 0.2);
}

/* Lava: Molten nav */
html[data-theme="lava"] .pill-nav {
 background: rgba(40, 10, 10, 0.9);
 border: 1px solid #ff4d00;
 box-shadow: 0 0 15px rgba(255, 77, 0, 0.2);
}

html[data-theme="lava"] .pill-nav__item.active {
 background: rgba(255, 77, 0, 0.2);
 color: #ffccaa;
 box-shadow: inset 0 0 10px rgba(255, 77, 0, 0.1);
}

/* ========== CHERRY BLOSSOM & GHIBLI FOREST: TRANSPARENT BACKGROUNDS ========== */

/* Cherry Blossom - Let the pink sakura scene show through */
html[data-theme="cherry-blossom"] body,
html[data-theme="cherry-blossom"] .app-shell,
html[data-theme="cherry-blossom"] .app-container,
html[data-theme="cherry-blossom"] .app-content {
  background: transparent !important;
}

html[data-theme="cherry-blossom"] .app-footer {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
}

/* Zen Garden - subtle paper texture showing through */
html[data-theme="zen-garden"] body,
html[data-theme="zen-garden"] .app-shell,
html[data-theme="zen-garden"] .app-container,
html[data-theme="zen-garden"] .app-content {
  background: transparent !important;
}

html[data-theme="zen-garden"] .app-footer {
  background: rgba(250, 249, 246, 0.8) !important;
  backdrop-filter: blur(8px);
}

/* ========== LAYOUT SYSTEM ========== */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: transparent !important;
  position: relative;
}

.app-container {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
 background: transparent !important;
 padding-top: 80px; /* Space for fixed nav */
 position: relative;
}

.app-content {
  flex: 1;
  padding: 1.5rem;
  background: transparent !important;
  position: relative;
}