/* =====================================================
   GIXO STUDIO - AURORA DARK (FOCUS VARIANT)
   Same foundation as Aurora Dark, quieter palette
   Cyan remains the signature — everything else recedes
   ===================================================== */

/* ==========================================================================
   1. CSS Variables - Studio Focus Palette
   ==========================================================================
   
   Philosophy: This is Aurora Dark with the volume turned down.
   - Cyan (#00d9ff) stays as primary — it's the Gixo signature
   - Secondary colors become muted/desaturated
   - Backgrounds shift slightly cooler for extended reading
   - Glows are softer, less frequent
   - The result: same brand, calmer energy
   
   ========================================================================== */

:root {
  /* ─────────────────────────────────────────────────────────────────────────
     GIXO Studio Brand Colors - Cyan Primary, Muted Supporting Cast
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-primary: #00d9ff;        /* Electric cyan — unchanged, this is Gixo */
  --gixo-studio-primary-dark: #00a8cc;   /* Darker cyan */
  --gixo-studio-primary-light: #66e9ff;  /* Light cyan */
  --gixo-studio-secondary: #64748b;      /* Slate-500 — neutral, not competing */
  --gixo-studio-accent: #94a3b8;         /* Slate-400 — subtle accent */
  
  /* ─────────────────────────────────────────────────────────────────────────
     Semantic Colors - Functional, not decorative
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-success: #22c55e;        /* Green-500 — slightly muted from Aurora */
  --gixo-studio-info: #00d9ff;           /* Use primary for info — unified */
  --gixo-studio-warning: #eab308;        /* Yellow-500 — functional only */
  --gixo-studio-error: #ef4444;          /* Red-500 — unchanged, safety critical */
  
  /* ─────────────────────────────────────────────────────────────────────────
     Surface Colors - Slightly deeper for focus
     Same midnight blue family, marginally darker for reduced distraction
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-background: #161a2e;     /* Slightly deeper than Aurora's #1a1f3a */
  --gixo-studio-surface: #1e2340;        /* Slightly deeper than Aurora's #242b47 */
  --gixo-studio-surface-light: #282e4a;  /* Slightly deeper than Aurora's #2d3654 */
  --gixo-studio-surface-hover: #353c5a;  /* Slightly deeper than Aurora's #3d4766 */
  
  /* ─────────────────────────────────────────────────────────────────────────
     Text Colors - Identical to Aurora (proven contrast ratios)
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-text-primary: #f8fafc;   /* slate-50 */
  --gixo-studio-text-secondary: #e2e8f0; /* slate-200 */
  --gixo-studio-text-muted: #cbd5e1;     /* slate-300 */
  --gixo-studio-text-disabled: #94a3b8;  /* slate-400 */
  
  /* ─────────────────────────────────────────────────────────────────────────
     Borders & Dividers - Softer definition
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-border: rgba(148, 163, 184, 0.18);    /* Slightly more subtle */
  --gixo-studio-border-hover: rgba(0, 217, 255, 0.35); /* Cyan on hover */
  --gixo-studio-divider: #2d3654;                      /* Subtle divider */
  
  /* ─────────────────────────────────────────────────────────────────────────
     Glow Effects - Softer, less aggressive
     Still cyan, but dialed back ~30%
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-glow-sm: 0 0 8px rgba(0, 217, 255, 0.2);
  --gixo-studio-glow-md: 0 0 16px rgba(0, 217, 255, 0.25);
  --gixo-studio-glow-lg: 0 0 24px rgba(0, 217, 255, 0.3);
  
  /* ─────────────────────────────────────────────────────────────────────────
     Shadows - Identical to Aurora
     ───────────────────────────────────────────────────────────────────────── */
  --gixo-studio-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --gixo-studio-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --gixo-studio-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --gixo-studio-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --gixo-studio-shadow-color: 0 4px 16px rgba(0, 217, 255, 0.12);
}

/* ==========================================================================
   2. MudBlazor Palette Override - Studio Context
   ========================================================================== */

.gixo-studio {
  --mud-palette-primary: var(--gixo-studio-primary);
  --mud-palette-primary-darken: var(--gixo-studio-primary-dark);
  --mud-palette-primary-lighten: var(--gixo-studio-primary-light);
  --mud-palette-secondary: var(--gixo-studio-secondary);
  --mud-palette-tertiary: var(--gixo-studio-accent);
  --mud-palette-success: var(--gixo-studio-success);
  --mud-palette-info: var(--gixo-studio-info);
  --mud-palette-warning: var(--gixo-studio-warning);
  --mud-palette-error: var(--gixo-studio-error);
  --mud-palette-background: var(--gixo-studio-background);
  --mud-palette-background-grey: var(--gixo-studio-surface);
  --mud-palette-surface: var(--gixo-studio-surface);
  --mud-palette-drawer-background: var(--gixo-studio-surface);
  --mud-palette-appbar-background: var(--gixo-studio-background);
  --mud-palette-text-primary: var(--gixo-studio-text-primary);
  --mud-palette-text-secondary: var(--gixo-studio-text-secondary);
  --mud-palette-text-disabled: var(--gixo-studio-text-disabled);
  --mud-palette-action-default: var(--gixo-studio-primary);
  --mud-palette-lines-default: var(--gixo-studio-border);
  --mud-palette-lines-inputs: var(--gixo-studio-border);
  --mud-palette-table-lines: var(--gixo-studio-divider);
  --mud-palette-divider: var(--gixo-studio-divider);
  --mud-palette-overlay-dark: rgba(22, 26, 46, 0.88);
}

/* ==========================================================================
   3. Base Styles - Studio Context
   ========================================================================== */

.gixo-studio,
.gixo-studio body {
  background-color: var(--gixo-studio-background);
  color: var(--gixo-studio-text-primary);
}

.gixo-studio .mud-layout,
.gixo-studio .mud-main-content {
  background-color: var(--gixo-studio-background) !important;
  color: var(--gixo-studio-text-primary) !important;
}

/* ==========================================================================
   4. Component Styling - Quieter Than Aurora
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────────────────
   App Bar - Minimal, recedes into background
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-appbar {
  background: rgba(22, 26, 46, 0.95) !important;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--gixo-studio-border);
  box-shadow: none; /* Removed the cyan tint shadow */
}

/* ─────────────────────────────────────────────────────────────────────────
   Drawer - Clean, functional
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-drawer {
  background-color: var(--gixo-studio-surface) !important;
  border-right: 1px solid var(--gixo-studio-border);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

.gixo-studio .mud-drawer-header {
  background-color: var(--gixo-studio-surface) !important;
  border-bottom: 1px solid var(--gixo-studio-border);
}

/* ─────────────────────────────────────────────────────────────────────────
   Navigation - Subtle cyan accents
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-nav-item {
  color: var(--gixo-studio-text-secondary) !important;
  border-radius: 6px;
  margin: 4px 8px;
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}

.gixo-studio .mud-nav-item:hover {
  background-color: rgba(0, 217, 255, 0.05) !important; /* Softer than Aurora */
  color: var(--gixo-studio-text-primary) !important;
  border-color: rgba(0, 217, 255, 0.15);
}

.gixo-studio .mud-nav-item.active,
.gixo-studio .mud-nav-link.active {
  background: rgba(0, 217, 255, 0.1) !important; /* Softer than Aurora's 0.15 */
  color: var(--gixo-studio-primary-light) !important;
  border: 1px solid rgba(0, 217, 255, 0.4);
  box-shadow: none; /* Removed inset glow */
  font-weight: 600;
}

/* Active indicator - thinner, subtler glow */
.gixo-studio .mud-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px; /* Thinner than Aurora's 3px */
  height: 60%;
  background: var(--gixo-studio-primary);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--gixo-studio-glow-sm);
}

/* ─────────────────────────────────────────────────────────────────────────
   Buttons - Cyan primary, neutral secondary
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-button-root {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.gixo-studio .mud-button-filled-primary {
  background: var(--gixo-studio-primary) !important;
  color: var(--gixo-studio-background) !important;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.2); /* Softer shadow */
}

.gixo-studio .mud-button-filled-primary:hover {
  background: var(--gixo-studio-primary-light) !important;
  transform: translateY(-1px); /* Subtler lift */
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

/* Secondary buttons are now truly secondary — slate, not coral */
.gixo-studio .mud-button-filled-secondary {
  background: var(--gixo-studio-surface-light) !important;
  color: var(--gixo-studio-text-primary) !important;
  border: 1px solid var(--gixo-studio-border);
  box-shadow: none;
}

.gixo-studio .mud-button-filled-secondary:hover {
  background: var(--gixo-studio-surface-hover) !important;
  border-color: var(--gixo-studio-border-hover);
}

.gixo-studio .mud-button-outlined {
  border: 1px solid rgba(0, 217, 255, 0.4) !important;
  color: var(--gixo-studio-primary) !important;
  background: transparent !important;
}

.gixo-studio .mud-button-outlined:hover {
  background: rgba(0, 217, 255, 0.05) !important;
  border-color: var(--gixo-studio-primary) !important;
}

.gixo-studio .mud-button-text {
  color: var(--gixo-studio-primary) !important;
}

.gixo-studio .mud-button-text:hover {
  background-color: rgba(0, 217, 255, 0.05) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Icon Buttons - Quieter hover states
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-icon-button {
  color: var(--gixo-studio-text-secondary) !important;
  transition: all 0.2s ease;
}

.gixo-studio .mud-icon-button:hover {
  color: var(--gixo-studio-primary) !important;
  background-color: rgba(0, 217, 255, 0.05) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Papers & Cards - Clean, minimal borders
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-paper {
  background-color: var(--gixo-studio-surface) !important;
  border: 1px solid var(--gixo-studio-border) !important;
  color: var(--gixo-studio-text-primary) !important;
  transition: all 0.2s ease;
}

.gixo-studio .mud-paper:hover {
  border-color: rgba(0, 217, 255, 0.2) !important;
  /* No box-shadow on hover — keep it quiet */
}

/* ─────────────────────────────────────────────────────────────────────────
   Forms & Inputs - Focus-friendly
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-input-root {
  color: var(--gixo-studio-text-primary) !important;
}

.gixo-studio .mud-input-root-outlined {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-radius: 6px;
}

.gixo-studio .mud-input-outlined .mud-input-root:hover .mud-input-outlined-border {
  border-color: var(--gixo-studio-border-hover) !important;
}

.gixo-studio .mud-input-outlined.mud-focused .mud-input-outlined-border {
  border-color: var(--gixo-studio-primary) !important;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.08);
}

.gixo-studio .mud-input-label {
  color: var(--gixo-studio-text-muted) !important;
}

.gixo-studio .mud-input-label.mud-focused {
  color: var(--gixo-studio-primary) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Chips & Tags - Monochromatic, cyan only when needed
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-chip {
  background-color: var(--gixo-studio-surface-light) !important;
  color: var(--gixo-studio-text-primary) !important;
  border: 1px solid var(--gixo-studio-border);
  font-weight: 500;
}

.gixo-studio .mud-chip:hover {
  background-color: var(--gixo-studio-surface-hover) !important;
  border-color: rgba(0, 217, 255, 0.3);
}

/* Primary chips get cyan treatment */
.gixo-studio .mud-chip-primary {
  background-color: rgba(0, 217, 255, 0.12) !important;
  color: var(--gixo-studio-primary-light) !important;
  border: 1px solid rgba(0, 217, 255, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────
   Progress Indicators - Cyan, subtle glow
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-progress-circular-svg {
  color: var(--gixo-studio-primary) !important;
  filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.3));
}

.gixo-studio .mud-progress-linear {
  background-color: rgba(0, 217, 255, 0.08) !important;
}

.gixo-studio .mud-progress-linear-bars {
  background: var(--gixo-studio-primary) !important;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────
   Dialogs & Overlays - Focused attention
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-dialog {
  background-color: var(--gixo-studio-surface) !important;
  border: 1px solid var(--gixo-studio-border) !important;
  color: var(--gixo-studio-text-primary) !important;
  box-shadow: var(--gixo-studio-shadow-xl) !important;
}

.gixo-studio .mud-dialog-title {
  background-color: var(--gixo-studio-surface-light) !important;
  color: var(--gixo-studio-text-primary) !important;
  border-bottom: 1px solid var(--gixo-studio-border);
}

.gixo-studio .mud-overlay {
  background-color: rgba(22, 26, 46, 0.88) !important;
  backdrop-filter: blur(4px);
}

/* ─────────────────────────────────────────────────────────────────────────
   Tabs - Clean, cyan indicator
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-tabs-panels {
  background-color: var(--gixo-studio-surface) !important;
}

.gixo-studio .mud-tab {
  color: var(--gixo-studio-text-secondary) !important;
}

.gixo-studio .mud-tab.mud-tab-active {
  color: var(--gixo-studio-primary) !important;
}

.gixo-studio .mud-tabs-slider {
  background-color: var(--gixo-studio-primary) !important;
  box-shadow: var(--gixo-studio-glow-sm);
}

/* ─────────────────────────────────────────────────────────────────────────
   Tables - Clean, functional
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-table {
  background-color: var(--gixo-studio-surface) !important;
  color: var(--gixo-studio-text-primary) !important;
}

.gixo-studio .mud-table-head {
  background-color: var(--gixo-studio-surface-light) !important;
}

.gixo-studio .mud-table-cell {
  color: var(--gixo-studio-text-primary) !important;
  border-bottom: 1px solid var(--gixo-studio-divider) !important;
}

.gixo-studio .mud-table-row:hover .mud-table-cell {
  background-color: rgba(0, 217, 255, 0.03) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Alerts - Functional colors only
   ───────────────────────────────────────────────────────────────────────── */
.gixo-studio .mud-alert-filled-success {
  background-color: var(--gixo-studio-success) !important;
  color: white !important;
}

.gixo-studio .mud-alert-filled-error {
  background-color: var(--gixo-studio-error) !important;
  color: white !important;
}

.gixo-studio .mud-alert-filled-warning {
  background-color: var(--gixo-studio-warning) !important;
  color: var(--gixo-studio-background) !important;
}

.gixo-studio .mud-alert-filled-info {
  background-color: var(--gixo-studio-primary) !important;
  color: var(--gixo-studio-background) !important;
}

/* ==========================================================================
   5. Studio-Specific Components
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────────────────
   Book Card - Clean, subtle hover
   ───────────────────────────────────────────────────────────────────────── */
.studio-book-card {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.studio-book-card:hover {
  border-color: rgba(0, 217, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--gixo-studio-shadow-md);
}

/* ─────────────────────────────────────────────────────────────────────────
   Chapter Counter - Cyan accent
   ───────────────────────────────────────────────────────────────────────── */
.studio-chapter-counter {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  box-shadow: var(--gixo-studio-shadow-sm);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.studio-chapter-counter .counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gixo-studio-primary);
  margin: 0.5rem 0;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────
   Writing Progress Bar - Cyan only
   ───────────────────────────────────────────────────────────────────────── */
.studio-progress-bar {
  background: var(--gixo-studio-surface-light);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--gixo-studio-border);
}

.studio-progress-fill {
  background: var(--gixo-studio-primary);
  border-radius: 4px;
  height: 6px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────
   Document Outline - Minimal, functional
   ───────────────────────────────────────────────────────────────────────── */
.studio-outline-item {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 6px;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
}

.studio-outline-item:hover {
  background: var(--gixo-studio-surface-light);
  border-color: rgba(0, 217, 255, 0.2);
}

.studio-outline-item.active {
  border-color: rgba(0, 217, 255, 0.4);
  border-left: 3px solid var(--gixo-studio-primary);
  padding-left: calc(0.875rem - 2px);
}

.studio-outline-item.completed {
  opacity: 0.6;
}

.studio-outline-item.completed::after {
  content: '✓';
  float: right;
  color: var(--gixo-studio-success);
}

/* ─────────────────────────────────────────────────────────────────────────
   Focus Mode - Distraction-free writing
   ───────────────────────────────────────────────────────────────────────── */
.studio-focus-mode {
  background: var(--gixo-studio-background);
  min-height: 100vh;
}

.studio-focus-mode .editor-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--gixo-studio-text-primary);
}

.studio-focus-mode .editor-content:focus {
  outline: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   Metric Tiles - Clean, cyan values
   ───────────────────────────────────────────────────────────────────────── */
.studio-metric-tile {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.studio-metric-tile .metric-icon {
  color: var(--gixo-studio-text-muted);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.studio-metric-tile .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gixo-studio-primary);
  margin: 0.25rem 0;
}

.studio-metric-tile .metric-label {
  font-size: 0.75rem;
  color: var(--gixo-studio-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────────────────
   Export Panel - Neutral, functional
   ───────────────────────────────────────────────────────────────────────── */
.studio-export-panel {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.studio-export-option {
  background: var(--gixo-studio-surface-light);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.studio-export-option:hover {
  border-color: rgba(0, 217, 255, 0.25);
}

.studio-export-option.selected {
  background: rgba(0, 217, 255, 0.08);
  border-color: var(--gixo-studio-primary);
}

/* ─────────────────────────────────────────────────────────────────────────
   Chapter Editor - Writing workspace
   ───────────────────────────────────────────────────────────────────────── */
.studio-chapter-editor {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 10px;
  min-height: 500px;
  padding: 1.5rem;
}

.chapter-toolbar {
  background: var(--gixo-studio-surface-light);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--gixo-studio-border);
}

.word-count-indicator {
  margin-left: auto;
  color: var(--gixo-studio-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.word-count-indicator.on-track {
  color: var(--gixo-studio-text-secondary);
}

.word-count-indicator.near-goal {
  color: var(--gixo-studio-primary);
}

.word-count-indicator.goal-reached {
  color: var(--gixo-studio-success);
}

/* ─────────────────────────────────────────────────────────────────────────
   Outline Generator - Clean cards
   ───────────────────────────────────────────────────────────────────────── */
.studio-outline-generator {
  background: var(--gixo-studio-surface);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.outline-variation {
  background: var(--gixo-studio-surface-light);
  border: 1px solid var(--gixo-studio-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.outline-variation:hover {
  border-color: rgba(0, 217, 255, 0.3);
}

.outline-variation.selected {
  background: rgba(0, 217, 255, 0.06);
  border-color: var(--gixo-studio-primary);
}

/* ==========================================================================
   6. Scrollbar - Subtle, functional
   ========================================================================== */

.gixo-studio ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.gixo-studio ::-webkit-scrollbar-track {
  background: var(--gixo-studio-background);
}

.gixo-studio ::-webkit-scrollbar-thumb {
  background: var(--gixo-studio-surface-hover);
  border-radius: 4px;
}

.gixo-studio ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 217, 255, 0.4);
}

/* Firefox */
.gixo-studio * {
  scrollbar-width: thin;
  scrollbar-color: var(--gixo-studio-surface-hover) var(--gixo-studio-background);
}

/* ==========================================================================
   7. Focus States - Cyan ring
   ========================================================================== */

.gixo-studio *:focus-visible {
  outline: 2px solid var(--gixo-studio-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   8. Selection - Cyan highlight
   ========================================================================== */

.gixo-studio ::selection {
  background-color: rgba(0, 217, 255, 0.3);
  color: var(--gixo-studio-text-primary);
}

.gixo-studio ::-moz-selection {
  background-color: rgba(0, 217, 255, 0.3);
  color: var(--gixo-studio-text-primary);
}

/* ==========================================================================
   9. High Contrast Mode
   ========================================================================== */

[data-contrast="high"] .gixo-studio {
  --gixo-studio-primary: #00ffff;
  --gixo-studio-border: rgba(255, 255, 255, 0.4);
}

[data-contrast="high"] .gixo-studio * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-contrast="high"] .gixo-studio .mud-paper,
[data-contrast="high"] .gixo-studio .studio-book-card,
[data-contrast="high"] .gixo-studio .studio-outline-item,
[data-contrast="high"] .gixo-studio .studio-chapter-editor {
  border-width: 2px !important;
  border-color: #ffffff !important;
}

[data-contrast="high"] .gixo-studio .mud-button-filled-primary {
  background: #00ffff !important;
  color: #000000 !important;
}

/* ==========================================================================
   10. Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .gixo-studio .studio-book-card {
    padding: 1.25rem;
  }
  
  .gixo-studio .studio-chapter-editor {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .gixo-studio .studio-focus-mode .editor-content {
    padding: 2rem 1rem;
    font-size: 1rem;
    line-height: 1.75;
  }
  
  .gixo-studio .studio-metric-tile {
    padding: 1rem;
  }
  
  .gixo-studio .chapter-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .gixo-studio .word-count-indicator {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   11. Print Styles
   ========================================================================== */

@media print {
  .gixo-studio {
    background: white !important;
    color: black !important;
  }
  
  .gixo-studio .mud-appbar,
  .gixo-studio .mud-drawer,
  .gixo-studio .studio-outline-item,
  .gixo-studio .studio-export-panel,
  .gixo-studio .chapter-toolbar {
    display: none !important;
  }
  
  .gixo-studio .studio-chapter-editor {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: white !important;
  }
  
  .gixo-studio .studio-focus-mode .editor-content {
    max-width: 100%;
    padding: 0;
    color: black;
  }
}

/* ==========================================================================
   End of GIXO Studio - Aurora Dark (Focus Variant)
   ========================================================================== */
