/* ============================================================================ Reset & Base ============================================================================ */ * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; overflow-x: hidden; } /* Premium dark/light cross-fade via the View Transitions API (driven by ThemeContext.toggleTheme). The browser cross-fades a GPU-composited snapshot of the whole page — smooth at any element count — instead of repainting every node's colors (which stutters). Tune only the root cross-fade timing here. */ ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } @media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } } html, body, #root { min-height: 100%; min-height: 100dvh; max-width: 100vw; } body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text-primary); background: var(--bg-primary); overflow-x: hidden; overscroll-behavior-x: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color 0.3s ease, color 0.3s ease; } #root { overflow-x: hidden; touch-action: pan-y pinch-zoom; } h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); } h1 { font-size: clamp(2.5rem, 5vw, 4rem); } h2 { font-size: clamp(2rem, 4vw, 3rem); } h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); } p { color: var(--text-secondary); line-height: 1.6; } a { color: inherit; text-decoration: none; transition: var(--transition); } img { max-width: 100%; height: auto; } ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } ::selection { background: var(--accent-color); color: #fff; } /* ============================================================================ Base / Utilities ============================================================================ */ .text-warning { color: var(--warning) !important; } .text-danger { color: var(--danger) !important; } .text-success { color: var(--success) !important; } .text-muted { color: var(--text-muted) !important; } .text-secondary { color: var(--text-secondary) !important; } .text-tertiary { color: var(--text-tertiary) !important; } .text-accent { color: var(--accent-color) !important; } .fw-600 { font-weight: 600 !important; } .link-accent { color: var(--accent-color); font-weight: 500; text-decoration: none; } .link-accent:hover { text-decoration: underline; } /* Layout utilities */ .flex-1 { flex: 1; } .flex-row { display: flex; align-items: center; } .flex-row-gap { display: flex; align-items: center; gap: var(--space-3); } .flex-between { display: flex; align-items: center; justify-content: space-between; } /* Spacing utilities */ .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mt-2 { margin-top: var(--space-2); } .mt-6 { margin-top: var(--space-6); } .gap-2 { gap: var(--space-2); } .gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); } /* Typography utilities */ .fw-500 { font-weight: 500; } .text-right { text-align: right; } .text-center { text-align: center; } /* Loading & Animations */ .admin-spinner { width: 32px; height: 32px; border: 2px solid var(--accent-color); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Additional Utilities ─────────────────────────────────────────── */ /* Font sizes */ .text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.8125rem; } .text-md { font-size: 0.875rem; } .text-base { font-size: 1rem; } /* Width utilities */ .w-full { width: 100%; } .max-w-xs { max-width: 120px; } .max-w-sm { max-width: 200px; } /* Whitespace */ .whitespace-nowrap { white-space: nowrap; } /* Additional gaps */ .gap-1 { gap: 0.25rem; } .gap-3 { gap: 0.75rem; } .gap-6 { gap: 1.5rem; } /* Additional margins */ .mb-1 { margin-bottom: 0.25rem; } .mb-3 { margin-bottom: 0.75rem; } .mt-1 { margin-top: 0.25rem; } .mt-3 { margin-top: 0.75rem; } /* Display */ .inline-flex { display: inline-flex; align-items: center; } /* Prefers reduced motion */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } .admin-spinner { animation-duration: 0.8s !important; animation-iteration-count: infinite !important; } }