/**
 * =============================================================================
 * SCANEX GALLERY - Modern Theme
 * =============================================================================
 *
 * A clean, minimal theme for a contemporary look.
 * Apply by adding class="theme-modern" to <body>
 *
 * This overrides the default terminal/VCR aesthetic with:
 * - Clean whites and grays
 * - Subtle shadows instead of glows
 * - Sans-serif typography
 * - Minimal visual noise (no scanlines)
 *
 * =============================================================================
 */

/* Fonts loaded via <link> in root.html.heex with font-display: swap for non-blocking render */

/* =============================================================================
   Modern Theme Variables
   =============================================================================
*/

.theme-modern,
.app-shell.theme-modern {
  /* === Background Colors === */
  --crt-black: #ffffff;         /* White background */
  --crt-dark: #f8f9fa;          /* Light gray panels */
  --crt-amber: #2563eb;         /* Blue accent (was amber) */
  --crt-amber-dim: #93c5fd;     /* Light blue for inactive */
  --crt-green: #22c55e;         /* Success green */
  --crt-red: #ef4444;           /* Alert red */

  /* === Accent Colors === */
  --kodak-yellow: #fbbf24;      /* Warm yellow accent */
  --kodak-red: #1f2937;         /* Dark text (was red) */

  /* === Surface Colors === */
  --film-border: #e5e7eb;       /* Light border */
  --paper-cream: #ffffff;       /* White */
  --paper-aged: #f3f4f6;        /* Light gray */

  /* === Typography === */
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* =============================================================================
   Remove CRT/VHS Effects
   =============================================================================
*/

/* No scanlines */
.theme-modern .app-shell::before {
  display: none;
}

/* Clean shadows instead of glows */
.theme-modern .header-brand {
  text-shadow: none;
  color: #1f2937;
  letter-spacing: 0;
  font-weight: 600;
}

.theme-modern .date-text {
  text-shadow: none;
}

.theme-modern .nav-btn {
  text-shadow: none;
}


/* =============================================================================
   Modern App Shell
   =============================================================================
*/

.theme-modern .app-shell {
  background: var(--crt-black);
  color: #1f2937;
  font-family: var(--font-display);
  font-size: 14px;
}


/* =============================================================================
   Modern Header
   =============================================================================
*/

.theme-modern .header-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-modern .rec-indicator {
  color: #6b7280;
}

.theme-modern .rec-indicator.inactive {
  color: #9ca3af;
}

.theme-modern .rec-dot {
  background: #22c55e;
}

.theme-modern .rec-indicator.inactive .rec-dot {
  background: #d1d5db;
}


/* =============================================================================
   Modern Navigation
   =============================================================================
*/

.theme-modern .nav-controls {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: none;
}

.theme-modern .nav-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-family: var(--font-display);
  font-weight: 500;
  transition: all 0.15s ease;
}

.theme-modern .nav-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.theme-modern .nav-btn:active {
  background: #d1d5db;
}

.theme-modern .nav-btn.active {
  background: var(--crt-amber);
  border-color: var(--crt-amber);
  color: #ffffff;
}


/* =============================================================================
   Modern Date Display
   =============================================================================
*/

.theme-modern .date-display {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.theme-modern .date-text {
  color: #1f2937;
  font-weight: 600;
}

.theme-modern .date-detail {
  color: #6b7280;
}

.theme-modern .date-select {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  font-family: var(--font-display);
}


/* =============================================================================
   Modern Sidebar
   =============================================================================
*/

.theme-modern .sidebar {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}

.theme-modern .strip-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
}

.theme-modern .scroll-wrapper {
  background: #f9fafb;
}

/* No film sprocket effect */
.theme-modern .scroll-wrapper::before,
.theme-modern .scroll-wrapper::after {
  display: none;
}

.theme-modern .thumb {
  background: #ffffff;
  border-radius: 4px;
  padding: 0;
  opacity: 0.8;
  transition: all 0.15s ease;
}

.theme-modern .thumb:hover {
  opacity: 1;
}

.theme-modern .thumb.active {
  opacity: 1;
  outline: 2px solid var(--crt-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* No frame numbers */
.theme-modern .thumb::after {
  display: none;
}


/* =============================================================================
   Modern Hero/Stage
   =============================================================================
*/

.theme-modern .stage {
  background: #f3f4f6;
}

.theme-modern .hero-wrapper {
  background: transparent;
  padding: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* No date stamp overlay */
.theme-modern .date-stamp {
  display: none;
}

/* No frame counter */
.theme-modern .frame-counter {
  display: none;
}


/* =============================================================================
   Modern Banners
   =============================================================================
*/

.theme-modern .banner {
  background: var(--crt-amber);
  color: #ffffff;
  border-radius: 20px;
  animation: none;
  font-family: var(--font-display);
  font-weight: 500;
}

.theme-modern .filter-banner {
  background: #22c55e;
  color: #ffffff;
  border-radius: 20px;
  font-family: var(--font-display);
}

.theme-modern .filter-banner button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 4px;
}


/* =============================================================================
   Modern Meta Display
   =============================================================================
*/

.theme-modern .meta-display {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
}

.theme-modern .meta-display::before {
  background: #ffffff;
  color: #6b7280;
}

.theme-modern .meta-row {
  border-bottom: 1px solid #f3f4f6;
}

.theme-modern .meta-val {
  color: #1e40af;  /* Blue 800 for light theme */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
}

.theme-modern .meta-val a {
  color: #2563eb;  /* Blue 600 */
  font-weight: 400;
}

/* Exposure data - consistent sizing */
.theme-modern .desktop-exposure {
  font-size: 15px;
  color: #374151;  /* Gray 700 */
  font-weight: 400;
}

/* Tags and description - readable */
.theme-modern .tag-list {
  color: #4b5563;  /* Gray 600 */
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
}

.theme-modern .description-text {
  color: #4b5563;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}


/* =============================================================================
   Modern Download & Share
   =============================================================================
*/

.theme-modern .download-panel {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.theme-modern .download-btn {
  background: var(--crt-amber);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: all 0.15s ease;
}

.theme-modern .download-btn:hover {
  background: #1d4ed8;
}

.theme-modern .share-panel {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.theme-modern .share-btn {
  background: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
}

.theme-modern .share-btn:hover {
  background: #16a34a;
}


/* =============================================================================
   Modern Modals
   =============================================================================
*/

.theme-modern .info-modal {
  background: rgba(0, 0, 0, 0.5);
}

.theme-modern .info-content {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-family: var(--font-display);
}

.theme-modern .info-header {
  border-bottom: 1px solid #e5e7eb;
}

.theme-modern .info-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.theme-modern .close-btn {
  background: #f3f4f6;
  color: #374151;
  border-radius: 6px;
  font-family: var(--font-display);
}

.theme-modern .shortcut-key {
  background: #f3f4f6;
  color: #374151;
  border-radius: 4px;
  font-family: var(--font-mono);
}


/* =============================================================================
   Modern Face/Object Overlays
   =============================================================================
*/

.theme-modern .face-box {
  border: 2px solid #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 4px;
}

.theme-modern .face-box .face-label {
  background: #22c55e;
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--font-display);
}

.theme-modern .object-box {
  border: 2px solid var(--crt-amber);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
}

.theme-modern .object-box .object-label {
  background: var(--crt-amber);
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--font-display);
}


/* =============================================================================
   Modern Contact Sheet
   =============================================================================
*/

.theme-modern .contact-sheet-toggle {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.theme-modern .contact-sheet-toggle span {
  color: #374151;
  font-family: var(--font-display);
}

.theme-modern .contact-sheet {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
}

.theme-modern .contact-sheet-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.theme-modern .contact-sheet-header span {
  color: #374151;
  font-family: var(--font-display);
}

.theme-modern .contact-sheet-header button {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 6px;
  font-family: var(--font-display);
}

.theme-modern .contact-sheet-grid img {
  border-radius: 4px;
}

.theme-modern .contact-sheet-grid img.selected {
  border-color: var(--crt-amber);
  box-shadow: 0 0 0 2px var(--crt-amber);
}


/* =============================================================================
   Modern PIN Screen
   =============================================================================
*/

.theme-modern .pin-screen {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-modern .pin-screen h1 {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.theme-modern .pin-screen h2 {
  color: #ffffff;
  text-shadow: none;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.theme-modern .pin-screen input {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 12px;
  color: #1f2937;
  font-family: var(--font-mono);
}

.theme-modern .pin-screen .submit-btn {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  color: #7c3aed;
  font-family: var(--font-display);
  font-weight: 600;
  text-shadow: none;
}

.theme-modern .pin-screen .error {
  color: #fecaca;
  font-family: var(--font-display);
}

.theme-modern .pin-screen .hint {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
}


/* =============================================================================
   Modern Search
   =============================================================================
*/

.theme-modern .search-input {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #1f2937;
  font-family: var(--font-display);
}

.theme-modern .search-input:focus {
  border-color: var(--crt-amber);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.theme-modern .search-input::placeholder {
  color: #9ca3af;
}

.theme-modern .search-results-count {
  color: #6b7280;
  font-family: var(--font-display);
}


/* =============================================================================
   MODERN DARK THEME
   =============================================================================
   Same clean aesthetic as modern-light, but with dark backgrounds.
   Apply with class="theme-modern-dark" on body.
   =============================================================================
*/

.theme-modern-dark,
.app-shell.theme-modern-dark {
  /* === Background Colors === */
  --crt-black: #0f172a;           /* Slate 900 - deep dark */
  --crt-dark: #1e293b;            /* Slate 800 - panels */
  --crt-amber: #7dd3fc;           /* Sky 300 - bright accent (high contrast) */
  --crt-amber-dim: #38bdf8;       /* Sky 400 - slightly dimmer */
  --crt-green: #4ade80;           /* Green 400 - brighter for dark bg */
  --crt-red: #f87171;             /* Red 400 - brighter for dark bg */

  /* === Accent Colors === */
  --kodak-yellow: #fcd34d;        /* Amber 300 - brighter yellow */
  --kodak-red: #f1f5f9;           /* Slate 100 - brighter text */

  /* === Surface Colors === */
  --film-border: #475569;         /* Slate 600 - brighter borders */
  --paper-cream: #1e293b;         /* Slate 800 */
  --paper-aged: #0f172a;          /* Slate 900 */

  /* === Typography === */
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* No scanlines in dark mode either */
.theme-modern-dark .app-shell::before {
  display: none;
}

.theme-modern-dark .header-brand {
  text-shadow: none;
  color: #f1f5f9;
  letter-spacing: 0;
  font-weight: 600;
}

.theme-modern-dark .date-text {
  text-shadow: none;
}

.theme-modern-dark .nav-btn {
  text-shadow: none;
}

/* === Dark App Shell === */
.theme-modern-dark .app-shell {
  background: var(--crt-black);
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 14px;
}

/* === Dark Header === */
.theme-modern-dark .header-bar {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-modern-dark .rec-indicator {
  color: #94a3b8;
}

.theme-modern-dark .rec-indicator.inactive {
  color: #64748b;
}

.theme-modern-dark .rec-dot {
  background: #22c55e;
}

.theme-modern-dark .rec-indicator.inactive .rec-dot {
  background: #475569;
}

/* === Dark Navigation === */
.theme-modern-dark .nav-controls {
  background: #1e293b;
  border-top: 1px solid #334155;
  border-bottom: none;
}

.theme-modern-dark .nav-btn {
  background: #334155;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #e2e8f0;
  font-family: var(--font-display);
  font-weight: 500;
  transition: all 0.15s ease;
}

.theme-modern-dark .nav-btn:hover {
  background: #475569;
  border-color: #64748b;
}

.theme-modern-dark .nav-btn:active {
  background: #64748b;
}

.theme-modern-dark .nav-btn.active {
  background: var(--crt-amber);
  border-color: var(--crt-amber);
  color: #0f172a;  /* Dark text on bright cyan */
}

/* === Dark Date Display === */
.theme-modern-dark .date-display {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
}

.theme-modern-dark .date-text {
  color: #f1f5f9;
  font-weight: 500;
  font-size: 18px;  /* Larger date text */
}

.theme-modern-dark .date-detail {
  color: #94a3b8;
  font-size: 14px;
}

.theme-modern-dark .date-select {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-family: var(--font-display);
  font-size: 16px;  /* Larger dropdown */
}

/* === Dark Sidebar === */
.theme-modern-dark .sidebar {
  background: #1e293b;
  border-top: 1px solid #334155;
  border-left: 1px solid #334155;
}

.theme-modern-dark .strip-header {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  color: #94a3b8;
}

.theme-modern-dark .scroll-wrapper {
  background: #1e293b;
}

.theme-modern-dark .scroll-wrapper::before,
.theme-modern-dark .scroll-wrapper::after {
  display: none;
}

.theme-modern-dark .thumb {
  background: #334155;
  border-radius: 4px;
  padding: 0;
  opacity: 0.8;
  transition: all 0.15s ease;
}

.theme-modern-dark .thumb:hover {
  opacity: 1;
}

.theme-modern-dark .thumb.active {
  opacity: 1;
  outline: 2px solid var(--crt-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.theme-modern-dark .thumb::after {
  display: none;
}

/* === Dark Hero/Stage === */
.theme-modern-dark .stage {
  background: #0f172a;
}

.theme-modern-dark .hero-wrapper {
  background: transparent;
  padding: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.theme-modern-dark .date-stamp {
  display: none;
}

.theme-modern-dark .frame-counter {
  display: none;
}

/* === Dark Banners === */
.theme-modern-dark .banner {
  background: var(--crt-amber);
  color: #0f172a;  /* Dark text on bright cyan */
  border-radius: 20px;
  animation: none;
  font-family: var(--font-display);
  font-weight: 500;
}

.theme-modern-dark .filter-banner {
  background: #22c55e;
  color: #ffffff;
  border-radius: 20px;
  font-family: var(--font-display);
}

.theme-modern-dark .filter-banner button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 4px;
}

/* === Dark Meta Display === */
.theme-modern-dark .meta-display {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #94a3b8;  /* Softer gray for labels */
  font-weight: 400;  /* Normal weight */
  font-size: 15px;  /* Slightly larger base */
}

.theme-modern-dark .meta-display::before {
  background: #1e293b;
  color: #64748b;  /* Subtle header */
  font-weight: 500;
  font-size: 12px;
}

.theme-modern-dark .meta-row {
  border-bottom: 1px solid #334155;
  padding: 8px 12px;  /* More padding for readability */
}

.theme-modern-dark .meta-label {
  color: #64748b;  /* Dim labels */
  font-weight: 400;
  font-size: 13px;
}

.theme-modern-dark .meta-val {
  color: #e2e8f0;  /* Slate 200 - brighter for readability */
  font-family: var(--font-display);  /* Use sans-serif, not mono */
  font-weight: 400;  /* Normal, not bold */
  font-size: 15px;
}

.theme-modern-dark .meta-val a {
  color: var(--crt-amber);  /* Links stay cyan */
  font-weight: 400;
}

/* Exposure data - larger and clearer */
.theme-modern-dark .desktop-exposure {
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 400;
}

/* Tags and description - readable */
.theme-modern-dark .tag-list {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
}

.theme-modern-dark .description-text {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

/* === Dark Download & Share === */
.theme-modern-dark .download-panel {
  background: #1e293b;
  border-top: 1px solid #334155;
}

.theme-modern-dark .download-btn {
  background: var(--crt-amber);
  color: #0f172a;  /* Dark text on bright cyan */
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: all 0.15s ease;
}

.theme-modern-dark .download-btn:hover {
  background: #38bdf8;  /* Sky 400 - slightly darker on hover */
}

.theme-modern-dark .share-panel {
  background: #1e293b;
  border-top: 1px solid #334155;
}

.theme-modern-dark .share-btn {
  background: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
}

.theme-modern-dark .share-btn:hover {
  background: #16a34a;
}

/* === Dark Modals === */
.theme-modern-dark .info-modal {
  background: rgba(0, 0, 0, 0.7);
}

.theme-modern-dark .info-content {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  font-family: var(--font-display);
  color: #e2e8f0;
}

.theme-modern-dark .info-header {
  border-bottom: 1px solid #334155;
}

.theme-modern-dark .info-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  color: #f1f5f9;
}

.theme-modern-dark .close-btn {
  background: #334155;
  color: #e2e8f0;
  border-radius: 6px;
  font-family: var(--font-display);
}

.theme-modern-dark .shortcut-key {
  background: #334155;
  color: #e2e8f0;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* === Dark Face/Object Overlays === */
.theme-modern-dark .face-box {
  border: 2px solid #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 4px;
}

.theme-modern-dark .face-box .face-label {
  background: #22c55e;
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--font-display);
}

.theme-modern-dark .object-box {
  border: 2px solid var(--crt-amber);
  background: rgba(125, 211, 252, 0.15);  /* Sky 300 with alpha */
  border-radius: 4px;
}

.theme-modern-dark .object-box .object-label {
  background: var(--crt-amber);
  color: #0f172a;  /* Dark text on bright cyan */
  border-radius: 4px;
  font-family: var(--font-display);
}

/* === Dark Contact Sheet === */
.theme-modern-dark .contact-sheet-toggle {
  background: #1e293b;
  border-top: 1px solid #334155;
}

.theme-modern-dark .contact-sheet-toggle span {
  color: #e2e8f0;
  font-family: var(--font-display);
}

.theme-modern-dark .contact-sheet {
  background: #1e293b;
  border-top: 1px solid #334155;
  border-radius: 16px 16px 0 0;
}

.theme-modern-dark .contact-sheet-header {
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.theme-modern-dark .contact-sheet-header span {
  color: #e2e8f0;
  font-family: var(--font-display);
}

.theme-modern-dark .contact-sheet-header button {
  background: #334155;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  font-family: var(--font-display);
}

.theme-modern-dark .contact-sheet-grid img {
  border-radius: 4px;
}

.theme-modern-dark .contact-sheet-grid img.selected {
  border-color: var(--crt-amber);
  box-shadow: 0 0 0 2px var(--crt-amber);
}

/* === Dark PIN Screen - Sleek & Sophisticated === */
.theme-modern-dark .pin-screen {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0c1222 0%, #0f172a 50%, #1e1b4b 100%);
  overflow: hidden;
}

/* Animated gradient orbs */
.theme-modern-dark .pin-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.08) 0%, transparent 40%);
  animation: pinScreenGlow 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pinScreenGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(5deg); }
  50% { transform: translate(-1%, 3%) rotate(-3deg); }
  75% { transform: translate(3%, -2%) rotate(2deg); }
}

/* Glass card container */
.theme-modern-dark .pin-screen form {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  z-index: 1;
}

.theme-modern-dark .pin-screen h1 {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.theme-modern-dark .pin-screen h2 {
  color: #ffffff;
  text-shadow: none;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

/* Lock icon before title */
.theme-modern-dark .pin-screen h2::before {
  content: '◈';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-modern-dark .pin-screen input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 28px;
  padding: 20px 24px;
  width: 240px;
  text-align: center;
  letter-spacing: 12px;
  transition: all 0.2s ease;
}

.theme-modern-dark .pin-screen input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 8px;
}

.theme-modern-dark .pin-screen input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.1),
    0 0 30px rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.theme-modern-dark .pin-screen .submit-btn {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 16px 48px;
  text-shadow: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 15px rgba(56, 189, 248, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.theme-modern-dark .pin-screen .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(56, 189, 248, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.theme-modern-dark .pin-screen .submit-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(56, 189, 248, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.theme-modern-dark .pin-screen .error {
  color: #f87171;
  font-family: var(--font-display);
  font-size: 14px;
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.theme-modern-dark .pin-screen .hint {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 32px;
}

/* === Dark Search === */
.theme-modern-dark .search-input {
  background: #334155;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #f1f5f9;
  font-family: var(--font-display);
}

.theme-modern-dark .search-input:focus {
  border-color: var(--crt-amber);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);  /* Sky 300 glow */
}

.theme-modern-dark .search-input::placeholder {
  color: #64748b;
}

.theme-modern-dark .search-results-count {
  color: #94a3b8;
  font-family: var(--font-display);
}


/* =============================================================================
   ADMIN PAGE STYLES - Modern Theme (Light)
   =============================================================================
   Consistent styling for all admin pages:
   /secretadmin, /secretadmin/gallery, /secretadmin/cluster, /secretadmin/nodes,
   /secretadmin/people, /secretadmin/events, /superadmin, /upload, /claim, /audit
   =============================================================================
*/

/* Admin page wrapper */
.theme-modern .admin-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #1f2937;
  font-family: var(--font-display);
  font-size: 14px;
}

/* Admin Navigation Bar */
.theme-modern .admin-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-modern .admin-nav-brand {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px 16px 0;
  border-right: 1px solid #e5e7eb;
  margin-right: 10px;
  color: #2563eb;
  text-decoration: none;
}

.theme-modern .admin-nav-item {
  padding: 16px 16px;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  transition: all 0.15s ease;
}

.theme-modern .admin-nav-item:hover {
  background: #f3f4f6;
  color: #374151;
}

.theme-modern .admin-nav-item.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #eff6ff;
}

.theme-modern .admin-nav-spacer {
  flex-grow: 1;
}

.theme-modern .admin-nav-back {
  padding: 10px 15px;
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
}

.theme-modern .admin-nav-back:hover {
  color: #2563eb;
}

/* Admin Content Area */
.theme-modern .admin-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Admin Page Title */
.theme-modern .admin-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 24px;
}

/* Admin Sections/Cards */
.theme-modern .admin-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-modern .admin-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

/* Admin Buttons */
.theme-modern .admin-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.theme-modern .admin-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.theme-modern .admin-btn-primary:hover {
  background: #1d4ed8;
}

.theme-modern .admin-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.theme-modern .admin-btn-secondary:hover {
  background: #e5e7eb;
}

.theme-modern .admin-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.theme-modern .admin-btn-danger:hover {
  background: #fee2e2;
}

.theme-modern .admin-btn-success {
  background: #22c55e;
  color: #ffffff;
}

.theme-modern .admin-btn-success:hover {
  background: #16a34a;
}

/* Admin Form Elements */
.theme-modern .admin-input,
.theme-modern .admin-select,
.theme-modern .admin-textarea {
  font-family: var(--font-display);
  font-size: 14px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  transition: all 0.15s ease;
}

.theme-modern .admin-input:focus,
.theme-modern .admin-select:focus,
.theme-modern .admin-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.theme-modern .admin-input::placeholder {
  color: #9ca3af;
}

/* Admin Stats Grid */
.theme-modern .admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.theme-modern .admin-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.theme-modern .admin-stat-value {
  font-size: 32px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 4px;
}

.theme-modern .admin-stat-label {
  font-size: 13px;
  color: #6b7280;
}

/* Admin Tables */
.theme-modern .admin-table {
  width: 100%;
  border-collapse: collapse;
}

.theme-modern .admin-table th,
.theme-modern .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.theme-modern .admin-table th {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-modern .admin-table tr:hover {
  background: #f9fafb;
}

/* Admin Modals */
.theme-modern .admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.theme-modern .admin-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.theme-modern .admin-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* Admin Badges/Tags */
.theme-modern .admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.theme-modern .admin-badge-success {
  background: #dcfce7;
  color: #166534;
}

.theme-modern .admin-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.theme-modern .admin-badge-danger {
  background: #fee2e2;
  color: #dc2626;
}

.theme-modern .admin-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Admin PIN Screen (standalone pages like /upload, admin login) */
.theme-modern .admin-pin-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-modern .admin-pin-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 90%;
}

.theme-modern .admin-pin-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.theme-modern .admin-pin-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 32px;
}

.theme-modern .admin-pin-input {
  font-family: var(--font-mono);
  font-size: 24px;
  text-align: center;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 24px;
  width: 200px;
  letter-spacing: 8px;
  color: #1f2937;
  transition: all 0.15s ease;
}

.theme-modern .admin-pin-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.theme-modern .admin-pin-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 16px;
}


/* =============================================================================
   ADMIN PAGE STYLES - Modern Dark Theme
   =============================================================================
*/

/* Admin page wrapper - dark */
.theme-modern-dark .admin-page {
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 14px;
}

/* Admin Navigation Bar - dark */
.theme-modern-dark .admin-nav {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-modern-dark .admin-nav-brand {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px 16px 0;
  border-right: 1px solid #334155;
  margin-right: 10px;
  color: #7dd3fc;
  text-decoration: none;
}

.theme-modern-dark .admin-nav-item {
  padding: 16px 16px;
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  transition: all 0.15s ease;
}

.theme-modern-dark .admin-nav-item:hover {
  background: #334155;
  color: #e2e8f0;
}

.theme-modern-dark .admin-nav-item.active {
  color: #7dd3fc;
  border-bottom-color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
}

.theme-modern-dark .admin-nav-spacer {
  flex-grow: 1;
}

.theme-modern-dark .admin-nav-back {
  padding: 10px 15px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
}

.theme-modern-dark .admin-nav-back:hover {
  color: #7dd3fc;
}

/* Admin Content Area - dark */
.theme-modern-dark .admin-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Admin Page Title - dark */
.theme-modern-dark .admin-title {
  font-size: 24px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 24px;
}

/* Admin Sections/Cards - dark */
.theme-modern-dark .admin-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-modern-dark .admin-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #334155;
}

/* Admin Buttons - dark */
.theme-modern-dark .admin-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.theme-modern-dark .admin-btn-primary {
  background: #7dd3fc;
  color: #0f172a;
}

.theme-modern-dark .admin-btn-primary:hover {
  background: #38bdf8;
}

.theme-modern-dark .admin-btn-secondary {
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
}

.theme-modern-dark .admin-btn-secondary:hover {
  background: #475569;
}

.theme-modern-dark .admin-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.theme-modern-dark .admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.theme-modern-dark .admin-btn-success {
  background: #22c55e;
  color: #ffffff;
}

.theme-modern-dark .admin-btn-success:hover {
  background: #16a34a;
}

/* Admin Form Elements - dark */
.theme-modern-dark .admin-input,
.theme-modern-dark .admin-select,
.theme-modern-dark .admin-textarea {
  font-family: var(--font-display);
  font-size: 14px;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  transition: all 0.15s ease;
}

.theme-modern-dark .admin-input:focus,
.theme-modern-dark .admin-select:focus,
.theme-modern-dark .admin-textarea:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

.theme-modern-dark .admin-input::placeholder {
  color: #64748b;
}

/* Admin Stats Grid - dark */
.theme-modern-dark .admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.theme-modern-dark .admin-stat-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.theme-modern-dark .admin-stat-value {
  font-size: 32px;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.theme-modern-dark .admin-stat-label {
  font-size: 13px;
  color: #94a3b8;
}

/* Admin Tables - dark */
.theme-modern-dark .admin-table {
  width: 100%;
  border-collapse: collapse;
}

.theme-modern-dark .admin-table th,
.theme-modern-dark .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.theme-modern-dark .admin-table th {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-modern-dark .admin-table tr:hover {
  background: rgba(125, 211, 252, 0.05);
}

/* Admin Modals - dark */
.theme-modern-dark .admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.theme-modern-dark .admin-modal {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.theme-modern-dark .admin-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #334155;
}

/* Admin Badges/Tags - dark */
.theme-modern-dark .admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.theme-modern-dark .admin-badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.theme-modern-dark .admin-badge-warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

.theme-modern-dark .admin-badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.theme-modern-dark .admin-badge-info {
  background: rgba(125, 211, 252, 0.15);
  color: #7dd3fc;
}

/* Admin PIN Screen - dark (sleek glass morphism) */
.theme-modern-dark .admin-pin-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0c1222 0%, #0f172a 50%, #1e1b4b 100%);
  overflow: hidden;
}

.theme-modern-dark .admin-pin-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.08) 0%, transparent 40%);
  animation: pinScreenGlow 20s ease-in-out infinite;
  pointer-events: none;
}

.theme-modern-dark .admin-pin-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 90%;
}

.theme-modern-dark .admin-pin-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.theme-modern-dark .admin-pin-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-bottom: 32px;
}

.theme-modern-dark .admin-pin-input {
  font-family: var(--font-mono);
  font-size: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 24px;
  width: 220px;
  letter-spacing: 8px;
  color: #ffffff;
  transition: all 0.15s ease;
}

.theme-modern-dark .admin-pin-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.1),
    0 0 30px rgba(56, 189, 248, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.theme-modern-dark .admin-pin-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.theme-modern-dark .admin-pin-error {
  color: #f87171;
  font-size: 14px;
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}


/* =============================================================================
   GPU CLUSTER PAGE STYLES
   =============================================================================
   Specific styles for /secretadmin/cluster GPU monitoring dashboard.
   Uses admin-* base classes with cluster-* extensions.
   =============================================================================
*/

/* Cluster stats grid - similar to admin-stats-grid but with more columns */
.theme-modern-dark .cluster-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.theme-modern-dark .cluster-stat-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.theme-modern-dark .cluster-stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.theme-modern-dark .cluster-stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Worker cards */
.theme-modern-dark .worker-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.theme-modern-dark .worker-card.online {
  border-color: #22c55e;
  border-left: 4px solid #22c55e;
}

.theme-modern-dark .worker-card.offline {
  border-color: #f87171;
  border-left: 4px solid #f87171;
  opacity: 0.7;
}

.theme-modern-dark .worker-card.unknown {
  border-color: #fcd34d;
  border-left: 4px solid #fcd34d;
}

.theme-modern-dark .worker-info {
  flex: 1;
}

.theme-modern-dark .worker-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.theme-modern-dark .worker-meta {
  font-size: 13px;
  color: #94a3b8;
}

/* Status badges */
.theme-modern-dark .status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-modern-dark .status-badge.online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.theme-modern-dark .status-badge.offline {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.theme-modern-dark .status-badge.unknown {
  background: rgba(252, 211, 77, 0.15);
  color: #fcd34d;
}

/* Capability tags */
.theme-modern-dark .capabilities {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.theme-modern-dark .capability-tag {
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #7dd3fc;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* Feature recommendations */
.theme-modern-dark .recommendation-box {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.theme-modern-dark .recommendation-box h3 {
  color: #fcd34d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.theme-modern-dark .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.theme-modern-dark .feature-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.theme-modern-dark .feature-status.recommended { color: #4ade80; }
.theme-modern-dark .feature-status.possible { color: #fcd34d; }
.theme-modern-dark .feature-status.not_recommended { color: #f87171; }

/* Add worker form */
.theme-modern-dark .add-worker-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.theme-modern-dark .add-worker-form input {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 10px 14px;
  font-size: 14px;
}

.theme-modern-dark .add-worker-form input:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.15);
}

.theme-modern-dark .add-worker-form button {
  background: #7dd3fc;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-modern-dark .add-worker-form button:hover {
  background: #38bdf8;
}

/* Remove worker button */
.theme-modern-dark .remove-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.theme-modern-dark .remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Header row with refresh */
.theme-modern-dark .cluster-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.theme-modern-dark .cluster-header-row h1 {
  font-size: 24px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.theme-modern-dark .refresh-btn {
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-modern-dark .refresh-btn:hover {
  background: #475569;
}

.theme-modern-dark .last-refresh {
  font-size: 13px;
  color: #64748b;
  margin-left: 12px;
}

/* Loading state */
.theme-modern-dark .cluster-loading {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  font-size: 16px;
}

.theme-modern-dark .cluster-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #475569;
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 12px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   EVENTS PAGE STYLES
   ========================================================================== */

/* Event card */
.theme-modern-dark .event-card {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 20px;
  margin-bottom: 12px;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.theme-modern-dark .event-card:hover {
  border-color: #7dd3fc;
}

.theme-modern-dark .event-card.exclusive {
  border-left: 3px solid #f87171;
}

.theme-modern-dark .event-card.hidden {
  opacity: 0.6;
}

/* Event name */
.theme-modern-dark .event-name {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
}

.theme-modern-dark .event-name:hover {
  color: #7dd3fc;
}

/* Event date range */
.theme-modern-dark .event-dates {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* Event description */
.theme-modern-dark .event-description {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

/* Event badges */
.theme-modern-dark .event-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-modern-dark .event-badge-exclusive {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.theme-modern-dark .event-badge-hidden {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.theme-modern-dark .event-badge-pin {
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

/* Event form inputs */
.theme-modern-dark .event-input {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 10px 14px;
  width: 100%;
  font-size: 14px;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.theme-modern-dark .event-input:focus {
  border-color: #7dd3fc;
  outline: none;
}

.theme-modern-dark .event-input::placeholder {
  color: #64748b;
}

/* Event form labels */
.theme-modern-dark .event-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Event action buttons */
.theme-modern-dark .event-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 16px;
}

.theme-modern-dark .event-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.theme-modern-dark .event-btn-view {
  background: rgba(125, 211, 252, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.3);
}

.theme-modern-dark .event-btn-view:hover {
  background: rgba(125, 211, 252, 0.2);
}

.theme-modern-dark .event-btn-toggle {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.theme-modern-dark .event-btn-toggle:hover {
  background: #334155;
  color: #f1f5f9;
}

.theme-modern-dark .event-btn-toggle.active {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.theme-modern-dark .event-btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.theme-modern-dark .event-btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Create event form */
.theme-modern-dark .event-create-form {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.theme-modern-dark .event-create-form h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.theme-modern-dark .event-form-grid {
  display: grid;
  gap: 16px;
}

.theme-modern-dark .event-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.theme-modern-dark .event-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Help modal */
.theme-modern-dark .events-help-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.theme-modern-dark .events-help-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.theme-modern-dark .events-help-modal h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
}

.theme-modern-dark .events-help-modal h3 {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 20px 0 8px 0;
}

.theme-modern-dark .events-help-modal p,
.theme-modern-dark .events-help-modal li {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.theme-modern-dark .events-help-modal ul {
  padding-left: 20px;
  margin: 0;
}

/* Empty state */
.theme-modern-dark .events-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.theme-modern-dark .events-empty p {
  margin: 8px 0;
}

/* Event header */
.theme-modern-dark .events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.theme-modern-dark .events-count {
  color: #94a3b8;
  font-size: 14px;
}

/* =============================================================================
   ADMIN GALLERY UNIFIED DESIGN SYSTEM
   =============================================================================
   Consolidates the rainbow border chaos into a cohesive 3-color hierarchy.
   Replaces inline styles in admin_live.html.heex with proper CSS classes.

   Color Palette:
   - Primary (Cyan): #7dd3fc - Main controls, active states
   - Secondary (Green): #4ade80 - Success states, confirmations
   - Tertiary (Amber): #fbbf24 - Warnings, special modes
   - Danger (Red): #f87171 - Destructive actions
   =============================================================================
*/

/* Admin Color Variables */
.admin-page {
  --admin-bg: #0f172a;
  --admin-surface: #1e293b;
  --admin-surface-elevated: #334155;
  --admin-border: #475569;
  --admin-text: #e2e8f0;
  --admin-text-muted: #94a3b8;
  --admin-text-dim: #64748b;

  /* Accent Colors - 3-color hierarchy */
  --admin-accent-primary: #7dd3fc;    /* Cyan - main actions */
  --admin-accent-secondary: #4ade80;  /* Green - success/active */
  --admin-accent-tertiary: #fbbf24;   /* Amber - warnings/special */
  --admin-accent-danger: #f87171;     /* Red - destructive */

  /* Accent Backgrounds (10% opacity) */
  --admin-accent-primary-bg: rgba(125, 211, 252, 0.1);
  --admin-accent-secondary-bg: rgba(74, 222, 128, 0.1);
  --admin-accent-tertiary-bg: rgba(251, 191, 36, 0.1);
  --admin-accent-danger-bg: rgba(248, 113, 113, 0.1);
}

/* =============================================================================
   Admin Section Cards - Unified Border Hierarchy
   =============================================================================
*/

.admin-section--primary {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-left: 3px solid var(--admin-accent-primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section--secondary {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-left: 3px solid var(--admin-accent-secondary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section--tertiary {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-left: 3px solid var(--admin-accent-tertiary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section--danger {
  background: var(--admin-surface);
  border: 1px solid var(--admin-accent-danger);
  border-left: 3px solid var(--admin-accent-danger);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section--neutral {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Section Headers */
.admin-section__header {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-section--primary .admin-section__header {
  color: var(--admin-accent-primary);
}

.admin-section--secondary .admin-section__header {
  color: var(--admin-accent-secondary);
}

.admin-section--tertiary .admin-section__header {
  color: var(--admin-accent-tertiary);
}

.admin-section--danger .admin-section__header {
  color: var(--admin-accent-danger);
}

/* Section Description */
.admin-section__desc {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin: 8px 0 16px 0;
  line-height: 1.5;
}

/* =============================================================================
   Admin Buttons - Unified Styling
   =============================================================================
*/

.admin-btn--primary {
  background: var(--admin-accent-primary);
  color: var(--admin-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-btn--primary:hover {
  background: #38bdf8;
}

.admin-btn--secondary {
  background: var(--admin-surface-elevated);
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-btn--secondary:hover {
  background: #475569;
  border-color: #64748b;
}

.admin-btn--success {
  background: var(--admin-accent-secondary);
  color: var(--admin-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.admin-btn--success:hover {
  background: #22c55e;
}

.admin-btn--warning {
  background: var(--admin-accent-tertiary-bg);
  color: var(--admin-accent-tertiary);
  border: 1px solid var(--admin-accent-tertiary);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.admin-btn--warning:hover {
  background: rgba(251, 191, 36, 0.2);
}

.admin-btn--danger {
  background: var(--admin-accent-danger-bg);
  color: var(--admin-accent-danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.admin-btn--danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

/* Toggle button active states */
.admin-btn--toggle {
  background: var(--admin-surface);
  color: var(--admin-text-muted);
  border: 1px solid var(--admin-border);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-btn--toggle.active {
  background: var(--admin-accent-secondary-bg);
  color: var(--admin-accent-secondary);
  border-color: var(--admin-accent-secondary);
}

.admin-btn--toggle.active-warning {
  background: var(--admin-accent-tertiary-bg);
  color: var(--admin-accent-tertiary);
  border-color: var(--admin-accent-tertiary);
}

.admin-btn--toggle.active-danger {
  background: var(--admin-accent-danger-bg);
  color: var(--admin-accent-danger);
  border-color: var(--admin-accent-danger);
}

/* Status indicator dot */
.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--admin-text-dim);
}

.admin-status-dot.active {
  background: var(--admin-accent-secondary);
}

.admin-status-dot.warning {
  background: var(--admin-accent-tertiary);
  animation: pulse 1s infinite;
}

.admin-status-dot.danger {
  background: var(--admin-accent-danger);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =============================================================================
   Theme Selector Buttons - Unified Grid
   =============================================================================
*/

.admin-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  .admin-theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-theme-btn {
  padding: 12px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-theme-btn:hover {
  border-color: var(--admin-border);
}

.admin-theme-btn.selected {
  border-color: var(--admin-accent-primary);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.3);
}

/* Theme-specific colors (applied via data attribute or inline) */
.admin-theme-btn[data-theme="kodak"] { background: #fbbf24; color: #dc2626; }
.admin-theme-btn[data-theme="fuji"] { background: #006b3c; color: #fff; }
.admin-theme-btn[data-theme="polaroid"] { background: #f5f5f5; color: #333; }
.admin-theme-btn[data-theme="noir"] { background: #000; color: #fff; }
.admin-theme-btn[data-theme="playboy"] { background: #000; color: #d4af37; }
.admin-theme-btn[data-theme="penthouse"] { background: #1a1a2e; color: #c9a227; }
.admin-theme-btn[data-theme="hustler"] { background: #8b0000; color: #ffd700; }
.admin-theme-btn[data-theme="instagram"] {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.admin-theme-btn[data-theme="web1"] { background: #c0c0c0; color: #000080; }
.admin-theme-btn[data-theme="ww2"] { background: #2d2a1f; color: #d4c9a8; }

/* =============================================================================
   Admin Stats Grid
   =============================================================================
*/

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 768px) {
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-stat {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.admin-stat__label {
  font-size: 10px;
  color: var(--admin-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.admin-stat__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--admin-accent-primary);
}

.admin-stat__value.success { color: var(--admin-accent-secondary); }
.admin-stat__value.warning { color: var(--admin-accent-tertiary); }
.admin-stat__value.danger { color: var(--admin-accent-danger); }

/* =============================================================================
   Admin Typography Scale
   =============================================================================
   Minimum 12px for readability. Base 14px.
*/

.admin-page {
  font-size: 14px;
  line-height: 1.5;
}

.admin-text-xs { font-size: 12px; }  /* Minimum */
.admin-text-sm { font-size: 13px; }
.admin-text-base { font-size: 14px; }
.admin-text-lg { font-size: 16px; }
.admin-text-xl { font-size: 18px; }

.admin-text-muted { color: var(--admin-text-muted); }
.admin-text-dim { color: var(--admin-text-dim); }

/* =============================================================================
   Admin Forms
   =============================================================================
*/

.admin-input {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--admin-text);
  width: 100%;
}

.admin-input:focus {
  outline: none;
  border-color: var(--admin-accent-primary);
  box-shadow: 0 0 0 3px var(--admin-accent-primary-bg);
}

.admin-input::placeholder {
  color: var(--admin-text-dim);
}

.admin-label {
  display: block;
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* =============================================================================
   Admin Button Grid (3-col layout for controls)
   =============================================================================
*/

.admin-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .admin-btn-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Mobile Responsive Adjustments (per Gemini design review)
   =============================================================================
*/

@media (max-width: 768px) {
  .admin-page {
    font-size: 16px;
  }

  .admin-section__header {
    font-size: 15px;
  }

  .admin-btn--primary,
  .admin-btn--secondary,
  .admin-btn--toggle {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }

  .admin-input {
    padding: 14px;
    font-size: 16px;
    min-height: 48px;
  }

  /* Admin nav: wrap and stack on mobile */
  .admin-nav,
  .theme-modern .admin-nav,
  .theme-modern-dark .admin-nav {
    flex-wrap: wrap !important;
    padding: 8px !important;
    height: auto !important;
    gap: 2px;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  .admin-nav-brand,
  .theme-modern .admin-nav-brand,
  .theme-modern-dark .admin-nav-brand {
    width: 100% !important;
    text-align: center;
    padding: 8px !important;
    margin: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(128,128,128,0.2);
    box-sizing: border-box;
  }

  .admin-nav-item,
  .theme-modern .admin-nav-item,
  .theme-modern-dark .admin-nav-item {
    padding: 6px 8px !important;
    min-height: 40px;
    font-size: 11px !important;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-nav-spacer,
  .theme-modern .admin-nav-spacer,
  .theme-modern-dark .admin-nav-spacer {
    display: none !important;
  }

  .admin-nav-back,
  .theme-modern .admin-nav-back,
  .theme-modern-dark .admin-nav-back {
    width: 100% !important;
    text-align: center;
    margin-top: 4px;
    padding: 8px !important;
    box-sizing: border-box;
  }

  /* Prevent horizontal overflow */
  .admin-page,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .admin-content,
  .theme-modern .admin-content,
  .theme-modern-dark .admin-content {
    padding: 8px !important;
    max-width: 100% !important;
  }

  /* Sections: full width, less padding */
  .admin-section {
    padding: 12px;
    margin: 8px 0;
  }

  /* Grids: single column */
  .admin-stats-grid,
  .cluster-stats-grid,
  .admin-button-group {
    grid-template-columns: 1fr !important;
  }

  /* Image grid: 2 columns on mobile */
  .admin-image-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* Tables: horizontal scroll */
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* VHS controls: stack */
  .vhs-controls {
    flex-direction: column;
    gap: 8px;
  }

  .vhs-control {
    min-height: 44px;
    width: 100%;
  }

  /* LED displays: smaller on mobile */
  .led-display {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Floppy labels: stack */
  .floppy-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Utility: flex-1 */
.flex-1 { flex: 1; }
