/* Copyright (c) 2025-2026 William Chesher | MIT License */
/* microverse admin - based on Hielo template by TEMPLATED (CC BY 3.0) */

/* Import shared shell styles (header, nav, color schemes, dark theme) */
@import './shell.css';

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Accessibility utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Base */
html, body {
    min-height: 100vh;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ccc;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4em;
    text-transform: lowercase;
}

h1 { font-size: 1.5em; }
h2 { font-size: 1.25em; }
h3 { font-size: 1.1em; }

/* Main page titles - 20% larger than logo */
main > h1,
main .page-header h1,
.page-header h1 {
    font-size: 1.5em !important;
    margin-bottom: 0.5em;
}

main > h1 svg,
.page-header h1 svg {
    width: 1.44em;
    height: 1.44em;
    color: #000;
    margin-right: 0.3em;
    vertical-align: middle;
}

p {
    margin-bottom: 1em;
}

/* Header, navigation, and notification styles are in shell.css */

/* Main content */
main {
    padding: 4.5em 1.5em 1.5em 1.5em;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Cards - compact */
.card {
    background: var(--bg-primary);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 1em;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1em;
    border-bottom: 1px solid var(--border-light);
}

.card-header h2 {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    color: #000;
    flex: 1;
}

/* Search input in tables */
.search-box {
    padding: 0.75em 1em;
    border-bottom: 1px solid var(--border-light);
}

.search-box input {
    width: 100%;
    max-width: 300px;
    padding: 0.5em 1em;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    font-size: 0.9em;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

html.dark-theme .search-box {
    border-color: #2a3a55;
}

html.dark-theme .search-box input {
    background: #16213e;
    border-color: #2a3a55;
    color: var(--text-primary);
}

/* Inline search input (in card headers, toolbars) */
.search-input {
    width: 180px;
    padding: 0.4em 0.75em;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    font-size: 0.85em;
    font-family: inherit;
    background: #f8f8f8;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

html.dark-theme .search-input {
    background: var(--bg-secondary);
    border-color: #3a4a65;
    color: #eee;
}

/* Bulk actions bar */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75em 1em;
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border-light);
}

.bulk-actions span {
    font-weight: 500;
    color: var(--accent);
}

html.dark-theme .bulk-actions {
    background: rgba(138, 79, 255, 0.15);
    border-color: #2a3a55;
}

/* Stats grid - compact horizontal layout */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-bottom: 1.25em;
}

/* Stats cards - responsive grid layout */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Soft neon palette for stat cards - prominent display */
.stat-card {
    background: var(--bg-primary);
    border: 1px solid rgba(196, 124, 255, 0.3);
    border-radius: 8px;
    padding: 1.25em 1.5em;
    display: flex;
    align-items: center;
    gap: 1em;
    color: var(--text-primary);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    min-width: 180px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Stat card icons - use accent color by default */
.stat-card .stat-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.stat-card .stat-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

/* Soft neon: blue (control) */
.stat-card.alt {
    border-color: rgba(124, 200, 255, 0.4);
}

.stat-card.alt:hover {
    box-shadow: 0 2px 8px rgba(124, 200, 255, 0.25);
}

.stat-card.alt .stat-icon {
    color: #7cc8ff;
}

/* Soft neon: cyan (sensing) */
.stat-card.success {
    border-color: rgba(124, 255, 220, 0.4);
}

.stat-card.success:hover {
    box-shadow: 0 2px 8px rgba(124, 255, 220, 0.25);
}

.stat-card.success .stat-icon {
    color: #7cffdc;
}

/* Soft neon: peach (events) */
.stat-card.warning {
    border-color: rgba(255, 176, 124, 0.4);
}

.stat-card.warning:hover {
    box-shadow: 0 2px 8px rgba(255, 176, 124, 0.25);
}

.stat-card.warning .stat-icon {
    color: #ffb07c;
}

.stat-card .number {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.stat-card .label {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* Tables - compact */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

th, td {
    text-align: left;
    padding: 0.5em 0.75em;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:hover {
    background: #fafafa;
}

/* Inline table icons - black on light, white on dark */
td > svg,
td > i svg {
    color: #000;
    vertical-align: middle;
    margin-right: 0.3em;
}

html.dark-theme td > svg,
html.dark-theme td > i svg,
html.dark-theme td > svg,
html.dark-theme td > i svg {
    color: #fff;
    text-shadow: none;
}

/* Status badges - monochrome pills */
.badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: lowercase;
    background: #222;
    color: #fff;
}

/* Device badge - monospace font */
.badge.device {
    font-family: 'Roboto Mono', monospace;
}

/* Badge status variants - light theme base */
.badge.online {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.badge.offline {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.badge.pending {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.badge.virtual {
    background: rgba(156, 39, 176, 0.15);
    color: #7b1fa2;
}

.badge.loading {
    background: rgba(33, 150, 243, 0.15);
    color: #1976d2;
}

/* Release channel badges */
.badge.alpha {
    background: rgba(233, 30, 99, 0.15);
    color: #c2185b;
}

.badge.beta {
    background: rgba(255, 152, 0, 0.15);
    color: #ef6c00;
}

.badge.production {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

/* Rate tier badges */
.badge.free {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.badge.plus {
    background: rgba(103, 58, 183, 0.15);
    color: #512da8;
}

/* Binding mode badges */
.badge.push {
    background: rgba(0, 188, 212, 0.15);
    color: #00838f;
}

.badge.trigger {
    background: rgba(255, 87, 34, 0.15);
    color: #d84315;
}

.badge.pull {
    background: rgba(156, 39, 176, 0.15);
    color: #7b1fa2;
}

.badge.sync {
    background: rgba(63, 81, 181, 0.15);
    color: #303f9f;
}

/* Status badges */
.badge.active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.badge.inactive {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.badge.error {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error);
}

.badge.warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

/* Rate tier badges */
.badge.basic {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.badge.premium {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.badge.enterprise {
    background: rgba(156, 39, 176, 0.15);
    color: #7b1fa2;
}

/* Feed type badges */
.badge.rss {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.badge.webhook {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.badge.api {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge.aio {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Alert severity badges (hyphenated form -- used in JS templates) */
.badge-info { background: rgba(33, 150, 243, 0.15); color: #1565c0; }
.badge-critical { background: rgba(198, 40, 40, 0.15); color: #c62828; }
.badge-escalated { background: rgba(156, 39, 176, 0.15); color: #7b1fa2; }

/* Voice status badges (hyphenated form -- used in JS templates) */
.badge-ready { background: rgba(76, 175, 80, 0.15); color: #155724; }
.badge-training { background: rgba(255, 193, 7, 0.15); color: #856404; }
.badge-notready { background: rgba(244, 67, 54, 0.15); color: #721c24; }
.badge-builtin { background: rgba(0, 188, 212, 0.15); color: #0c5460; }

/* Insight type badges */
.type-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: lowercase;
}

.type-badge.anomaly { background: #ffebee; color: #c62828; }
.type-badge.trend { background: #e3f2fd; color: #1565c0; }
.type-badge.forecast { background: #f3e5f5; color: #7b1fa2; }
.type-badge.spatial_anomaly { background: #fff3e0; color: #e65100; }
.type-badge.correlation { background: #e8f5e9; color: #2e7d32; }
.type-badge.pattern_match { background: #fce4ec; color: #880e4f; }

/* Quality badges */
.quality-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: lowercase;
}

.quality-badge.local { background: #e3f2fd; color: #1565c0; }
.quality-badge.gpu { background: #f3e5f5; color: #7b1fa2; }
.quality-badge.private { background: #f5f5f5; color: #616161; }
.quality-badge.shared { background: #e8f5e9; color: #2e7d32; }
.quality-badge.public { background: #fff3e0; color: #e65100; }

/* Semantic badges for integration types */
.badge-semantic {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.3em 0.65em;
    font-size: 0.7em;
    font-weight: 600;
    border-radius: 4px;
    text-transform: lowercase;
}

.badge-semantic i {
    font-size: 0.9em;
}

.badge-semantic.rss {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}

.badge-semantic.webhook {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-semantic.api {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.badge-semantic.aio {
    background: rgba(29, 233, 182, 0.15);
    color: #00897b;
}

.badge-semantic.mqtt {
    background: rgba(29, 233, 182, 0.15);
    color: #1de9b6;
}

.badge-semantic.websocket {
    background: rgba(157, 78, 221, 0.15);
    color: #9d4edd;
}

/* Dark theme badge overrides */
html.dark-theme .badge.online {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-light);
}

html.dark-theme .badge.offline {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

html.dark-theme .badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffca28;
}

html.dark-theme .badge.virtual {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
}

html.dark-theme .badge.loading {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

html.dark-theme .badge.alpha {
    background: rgba(233, 30, 99, 0.2);
    color: #f48fb1;
}

html.dark-theme .badge.beta {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

html.dark-theme .badge.production {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-light);
}

html.dark-theme .badge.free {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

html.dark-theme .badge.plus {
    background: rgba(103, 58, 183, 0.2);
    color: #b39ddb;
}

html.dark-theme .badge.push {
    background: rgba(0, 188, 212, 0.2);
    color: #4dd0e1;
}

html.dark-theme .badge.trigger {
    background: rgba(255, 87, 34, 0.2);
    color: #ff8a65;
}

html.dark-theme .badge.pull {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
}

html.dark-theme .badge.sync {
    background: rgba(63, 81, 181, 0.2);
    color: #9fa8da;
}

html.dark-theme .badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-light);
}

html.dark-theme .badge.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

html.dark-theme .badge.error {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-light);
}

html.dark-theme .badge.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

html.dark-theme .badge.basic {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

html.dark-theme .badge.premium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

html.dark-theme .badge.enterprise {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
}

/* Dark theme: feed type badges */
html.dark-theme .badge.rss { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
html.dark-theme .badge.webhook { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
html.dark-theme .badge.api { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
html.dark-theme .badge.aio { background: rgba(34, 197, 94, 0.2); color: #86efac; }

/* Dark theme: alert severity badges */
html.dark-theme .badge-info { background: #1e3a5f; color: #64b5f6; }
html.dark-theme .badge-critical { background: #4a0000; color: #ef9a9a; }
html.dark-theme .badge-escalated { background: #4a1d6e; color: #ce93d8; }

/* Dark theme: voice status badges */
html.dark-theme .badge-ready { background: #1a3d1a; color: #90ee90; }
html.dark-theme .badge-training { background: #3d3d1a; color: #ffd700; }
html.dark-theme .badge-notready { background: #3d1a1a; color: #ff9090; }
html.dark-theme .badge-builtin { background: #1a3d3d; color: #90d0ee; }

/* Dark theme: insight type badges */
html.dark-theme .type-badge.anomaly { background: #b71c1c; color: #ffcdd2; }
html.dark-theme .type-badge.trend { background: #0d47a1; color: #bbdefb; }
html.dark-theme .type-badge.forecast { background: #4a148c; color: #e1bee7; }
html.dark-theme .type-badge.spatial_anomaly { background: #bf360c; color: #ffccbc; }
html.dark-theme .type-badge.correlation { background: #1b5e20; color: #c8e6c9; }
html.dark-theme .type-badge.pattern_match { background: #880e4f; color: #f8bbd0; }

/* Dark theme: quality badges */
html.dark-theme .quality-badge.local { background: #0d47a1; color: #90caf9; }
html.dark-theme .quality-badge.gpu { background: #4a148c; color: #ce93d8; }
html.dark-theme .quality-badge.private { background: #424242; color: #bdbdbd; }
html.dark-theme .quality-badge.shared { background: #1b5e20; color: #a5d6a7; }
html.dark-theme .quality-badge.public { background: #bf360c; color: #ffab91; }

html.dark-theme .badge-semantic.rss {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

html.dark-theme .badge-semantic.webhook {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

html.dark-theme .badge-semantic.api {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

html.dark-theme .badge-semantic.aio {
    background: rgba(29, 233, 182, 0.2);
    color: #26a69a;
}

html.dark-theme .badge-semantic.mqtt {
    background: rgba(29, 233, 182, 0.2);
    color: #1de9b6;
}

html.dark-theme .badge-semantic.websocket {
    background: rgba(157, 78, 221, 0.2);
    color: #9d4edd;
}

/* Health badges - animated status indicators */
.health-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.health-badge .health-dot,
.health-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.health-badge.online {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.health-badge.online .health-dot,
.health-badge.online .dot {
    animation: health-pulse 2s infinite;
}

.health-badge.offline {
    background: rgba(158, 158, 158, 0.15);
    color: #757575;
}

.health-badge.virtual {
    background: rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
}

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

html.dark-theme .health-badge.online {
    background: rgba(76, 175, 80, 0.25);
    color: var(--success-light);
}

html.dark-theme .health-badge.offline {
    background: rgba(158, 158, 158, 0.25);
    color: #9e9e9e;
}

html.dark-theme .health-badge.virtual {
    background: rgba(108, 92, 231, 0.25);
    color: #a29bfe;
}

/* Buttons */
.button, button, input[type="submit"] {
    display: inline-block;
    padding: 0.75em 1.5em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.button.alt {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.button.alt:hover {
    background: var(--accent);
    color: #fff;
}

.button.small {
    padding: 0.4em 0.8em;
    font-size: 0.8em;
}

.button.danger {
    background: #e53935;
}

.button.danger:hover {
    background: #c62828;
}

.circle-btn.danger {
    background: linear-gradient(145deg, #ef5350, #e53935);
}

.circle-btn.danger:hover {
    background: linear-gradient(145deg, #e53935, #c62828);
}

/* Icon-only round buttons - standard action set */
.icon-btn,
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.icon-btn:hover,
.btn-icon:hover {
    background: #e0e0e0;
    color: #333;
}

.icon-btn:disabled,
.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.icon-btn:disabled:hover,
.btn-icon:disabled:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Icon button variants */
.icon-btn.refresh,
.btn-icon.refresh {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.icon-btn.refresh:hover,
.btn-icon.refresh:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.icon-btn.delete,
.btn-icon.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.icon-btn.delete:hover,
.btn-icon.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.icon-btn.stop,
.btn-icon.stop {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.icon-btn.stop:hover,
.btn-icon.stop:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.icon-btn.edit,
.btn-icon.edit {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}
.icon-btn.edit:hover,
.btn-icon.edit:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #9333ea;
}

.icon-btn.disable,
.btn-icon.disable {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.icon-btn.disable:hover,
.btn-icon.disable:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.icon-btn.enable,
.btn-icon.enable {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.icon-btn.enable:hover,
.btn-icon.enable:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.icon-btn.next,
.icon-btn.prev,
.btn-icon.next,
.btn-icon.prev {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}
.icon-btn.next:hover,
.icon-btn.prev:hover,
.btn-icon.next:hover,
.btn-icon.prev:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #4b5563;
}

/* Additional icon button variants */
.icon-btn.view,
.btn-icon.view {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.icon-btn.view:hover,
.btn-icon.view:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

.icon-btn.copy,
.btn-icon.copy {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}
.icon-btn.copy:hover,
.btn-icon.copy:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #4b5563;
}

.icon-btn.settings,
.btn-icon.settings {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}
.icon-btn.settings:hover,
.btn-icon.settings:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #4b5563;
}

.icon-btn.add,
.btn-icon.add {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.icon-btn.add:hover,
.btn-icon.add:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.icon-btn.sync,
.btn-icon.sync {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.icon-btn.sync:hover,
.btn-icon.sync:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.icon-btn.login,
.btn-icon.login {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.icon-btn.login:hover,
.btn-icon.login:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

.icon-btn.key,
.btn-icon.key {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}
.icon-btn.key:hover,
.btn-icon.key:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #9333ea;
}

/* Draw tool buttons (zone editor) */
.icon-btn.draw,
.btn-icon.draw {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}
.icon-btn.draw:hover,
.btn-icon.draw:hover {
    background: rgba(14, 165, 233, 0.2);
    color: #0284c7;
}

/* Active state for toggle buttons */
.icon-btn.active,
.btn-icon.active {
    background: var(--accent, #7c6fae) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(124, 111, 174, 0.3);
}

/* Icon button sizes */
.icon-btn.sm,
.btn-icon.sm {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
}

.icon-btn.lg,
.btn-icon.lg {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.icon-btn.xl,
.btn-icon.xl {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border: 1px solid var(--border-default);
    background: var(--bg-primary);
}

.icon-btn.xl:hover,
.btn-icon.xl:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 111, 174, 0.25);
}

html.dark-theme .icon-btn.xl,
html.dark-theme .btn-icon.xl {
    background: var(--bg-primary);
    border-color: #3a4a65;
}

/* Action buttons - round icon buttons for headers (legacy alias for .icon-btn.xl) */
.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    background: var(--bg-primary);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 111, 174, 0.25);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-btn.danger:hover:not(:disabled) {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.action-btn.primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.action-btn svg,
.action-btn i {
    width: 18px;
    height: 18px;
}

html.dark-theme .action-btn {
    background: var(--bg-primary);
    border-color: #3a4a65;
    color: var(--text-disabled);
}

html.dark-theme .action-btn:hover:not(:disabled) {
    background: rgba(124, 111, 174, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

html.dark-theme .action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Header actions container */
.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Accent circle buttons - unified 3D style for dashboard/status icons */
.circle-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--accent, #7c6fae), var(--accent-dark, #5c4f8e));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    flex-shrink: 0;
    padding: 0;
}

.circle-btn:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.circle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.circle-btn svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
}

.circle-btn i {
    color: inherit;
}

/* Dark theme icon buttons */
html.dark-theme .icon-btn,
html.dark-theme .btn-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-disabled);
}
html.dark-theme .icon-btn:hover,
html.dark-theme .btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
html.dark-theme .icon-btn:disabled:hover,
html.dark-theme .btn-icon:disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-disabled);
}
html.dark-theme .icon-btn.refresh,
html.dark-theme .btn-icon.refresh {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
html.dark-theme .icon-btn.refresh:hover,
html.dark-theme .btn-icon.refresh:hover {
    background: rgba(59, 130, 246, 0.25);
}
html.dark-theme .icon-btn.delete,
html.dark-theme .btn-icon.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
html.dark-theme .icon-btn.delete:hover,
html.dark-theme .btn-icon.delete:hover {
    background: rgba(239, 68, 68, 0.25);
}
html.dark-theme .icon-btn.stop,
html.dark-theme .btn-icon.stop {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
html.dark-theme .icon-btn.stop:hover,
html.dark-theme .btn-icon.stop:hover {
    background: rgba(239, 68, 68, 0.25);
}
html.dark-theme .icon-btn.edit,
html.dark-theme .btn-icon.edit {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}
html.dark-theme .icon-btn.edit:hover,
html.dark-theme .btn-icon.edit:hover {
    background: rgba(168, 85, 247, 0.25);
}
html.dark-theme .icon-btn.disable,
html.dark-theme .btn-icon.disable {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
html.dark-theme .icon-btn.disable:hover,
html.dark-theme .btn-icon.disable:hover {
    background: rgba(245, 158, 11, 0.25);
}
html.dark-theme .icon-btn.enable,
html.dark-theme .btn-icon.enable {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
html.dark-theme .icon-btn.enable:hover,
html.dark-theme .btn-icon.enable:hover {
    background: rgba(34, 197, 94, 0.25);
}
html.dark-theme .icon-btn.next,
html.dark-theme .icon-btn.prev,
html.dark-theme .btn-icon.next,
html.dark-theme .btn-icon.prev {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}
html.dark-theme .icon-btn.next:hover,
html.dark-theme .icon-btn.prev:hover,
html.dark-theme .btn-icon.next:hover,
html.dark-theme .btn-icon.prev:hover {
    background: rgba(156, 163, 175, 0.25);
}
html.dark-theme .icon-btn.view,
html.dark-theme .btn-icon.view {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
html.dark-theme .icon-btn.view:hover,
html.dark-theme .btn-icon.view:hover {
    background: rgba(99, 102, 241, 0.25);
}
html.dark-theme .icon-btn.copy,
html.dark-theme .icon-btn.settings,
html.dark-theme .btn-icon.copy,
html.dark-theme .btn-icon.settings {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}
html.dark-theme .icon-btn.copy:hover,
html.dark-theme .icon-btn.settings:hover,
html.dark-theme .btn-icon.copy:hover,
html.dark-theme .btn-icon.settings:hover {
    background: rgba(156, 163, 175, 0.25);
}
html.dark-theme .icon-btn.add,
html.dark-theme .btn-icon.add {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
html.dark-theme .icon-btn.add:hover,
html.dark-theme .btn-icon.add:hover {
    background: rgba(34, 197, 94, 0.25);
}
html.dark-theme .icon-btn.sync,
html.dark-theme .btn-icon.sync {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
html.dark-theme .icon-btn.sync:hover,
html.dark-theme .btn-icon.sync:hover {
    background: rgba(59, 130, 246, 0.25);
}
html.dark-theme .icon-btn.login,
html.dark-theme .btn-icon.login {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
html.dark-theme .icon-btn.login:hover,
html.dark-theme .btn-icon.login:hover {
    background: rgba(99, 102, 241, 0.25);
}
html.dark-theme .icon-btn.key,
html.dark-theme .btn-icon.key {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}
html.dark-theme .icon-btn.key:hover,
html.dark-theme .btn-icon.key:hover {
    background: rgba(168, 85, 247, 0.25);
}
html.dark-theme .icon-btn.draw,
html.dark-theme .btn-icon.draw {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}
html.dark-theme .icon-btn.draw:hover,
html.dark-theme .btn-icon.draw:hover {
    background: rgba(14, 165, 233, 0.25);
}

/* Dark theme circle buttons - white icons on accent background */
html.dark-theme .circle-btn,
html.dark-theme .circle-btn {
    background: linear-gradient(145deg, var(--accent-light, #b8aade), var(--accent, #9d8fce));
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

html.dark-theme .circle-btn:hover,
html.dark-theme .circle-btn:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Legacy support */
.button.icon-round {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.button.icon-round.delete {
    background: #e74c3c;
    color: #fff;
}

.button.icon-round.delete:hover {
    background: #c0392b;
}

/* Forms */
.form-group {
    margin-bottom: 1.25em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Form hints and errors */
.form-hint {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-top: 0.35em;
}

.form-error {
    font-size: 0.8em;
    color: #e53935;
    margin-top: 0.35em;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e53935;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

/* Inline select (compact, for headers/toolbars) */
select.inline {
    width: auto;
    padding: 0.4em 2em 0.4em 0.8em;
    font-size: 0.85em;
    border-radius: 20px;
    background: #f8f8f8;
}

/* Inline input (compact, for headers/toolbars) */
input.inline {
    width: auto;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    border-radius: 20px;
    background: #f8f8f8;
}

/* Input and select sizes */
select.sm,
input.inline.sm {
    padding: 0.34em 0.6em;
    font-size: 0.8em;
}

select.sm {
    padding-right: 1.5em;
}

/* Toggle switch (iOS style) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .slider {
    background-color: var(--accent);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Toggle group (segmented buttons) */
.toggle-group {
    display: inline-flex;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    overflow: hidden;
}

.toggle-group button {
    padding: 0.4em 0.8em;
    border: none;
    background: var(--bg-primary);
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-family: inherit;
}

.toggle-group button:not(:last-child) {
    border-right: 1px solid #ddd;
}

.toggle-group button.active {
    background: var(--accent);
    color: #fff;
}

.toggle-group button:hover:not(.active) {
    background: var(--bg-tertiary);
}

/* Tab navigation */
.tab-container {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-nav::-webkit-scrollbar {
    height: 3px;
}

.tab-nav::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.tab-btn:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn i {
    font-size: 1rem;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

html.dark-theme .tab-container {
    background: var(--bg-primary);
}

html.dark-theme .tab-nav {
    border-bottom-color: #3a4a65;
}

html.dark-theme .tab-btn {
    color: var(--text-muted);
}

html.dark-theme .tab-btn:hover {
    color: var(--accent);
    background: rgba(124, 111, 174, 0.1);
}

html.dark-theme .tab-btn.active {
    color: var(--accent);
}

/* Range slider */
.rangeslider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.rangeslider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.rangeslider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.rangeslider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rangeslider-value {
    font-size: 0.8em;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted, #888);
    min-width: 24px;
    text-align: center;
}

/* Mini slider (compact) */
.rangeslider.mini {
    width: 64px;
    height: 4px;
}

.rangeslider.mini::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
}

.rangeslider.mini::-moz-range-thumb {
    width: 12px;
    height: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 0.5em;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    margin: 0 0.5em;
    color: #ccc;
}

/* Page header - breadcrumbs left, title right */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.page-header .breadcrumbs {
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 0;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: #333;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toast-in 0.3s ease-out;
    max-width: 400px;
}

.toast.success {
    background: #22c55e;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

.toast .toast-icon {
    font-size: 1.1em;
}

.toast .toast-message {
    flex: 1;
}

.toast .toast-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    font-size: 1em;
}

.toast .toast-close:hover {
    opacity: 1;
}

@keyframes toast-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Loading skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-card {
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

html.dark-theme .skeleton {
    background: linear-gradient(90deg, #2a3a55 25%, #1f2940 50%, #2a3a55 75%);
    background-size: 200% 100%;
}

html.dark-theme .skeleton-card {
    background: var(--bg-primary);
    border-color: #2a3a55;
}

html.dark-theme .skeleton-row {
    border-bottom-color: #2a3a55;
}

/* Progress bar */
.progress-container {
    margin: 1rem 0;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    background: var(--accent);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

html.dark-theme .progress-bar {
    background: var(--bg-secondary);
}

html.dark-theme .progress-text {
    color: var(--text-disabled);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state .empty-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state .empty-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

html.dark-theme .empty-state .empty-icon {
    color: #3a4a6a;
}

html.dark-theme .empty-state .empty-title {
    color: var(--text-disabled);
}

html.dark-theme .empty-state .empty-message {
    color: var(--text-muted);
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: var(--bg-primary);
    padding: 3em;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.25em;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2em;
}

.login-box .error {
    background: #ffebee;
    color: var(--error);
    padding: 0.75em 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    font-size: 0.9em;
    display: none;
}

.login-box .error.show {
    display: block;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 2em;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal size variants */
.modal-sm { max-width: 360px; }
.modal-lg { max-width: 640px; }

.modal h2 {
    margin-bottom: 1em;
}

.modal-actions {
    display: flex;
    gap: 1em;
    justify-content: flex-end;
    margin-top: 1.5em;
}

/* Alerts */
.alert {
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 1em;
}

.alert.success {
    background: #e8f5e9;
    color: var(--success);
}

.alert.error {
    background: #ffebee;
    color: var(--error);
}

/* Actions */
.actions {
    display: flex;
    gap: 0.5em;
}

/* Token display */
.token-display {
    background: var(--bg-secondary);
    color: #333;
    padding: 1em;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    word-break: break-all;
    margin: 0;
    flex: 1;
}

html.dark-theme .token-display,
html.dark-theme .token-display {
    background: #16213e;
    color: var(--text-primary);
}

.token-display-row {
    display: flex;
    gap: 0.5em;
    align-items: stretch;
}

.token-display-row .button {
    flex-shrink: 0;
    align-self: center;
}

.token-display-row .circle-btn {
    flex-shrink: 0;
    align-self: center;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2em;
    color: var(--text-muted);
}

.loading-state {
    text-align: center;
    padding: 2em;
    color: var(--text-muted);
    font-style: italic;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3em;
    color: var(--text-muted);
}

/* Layout modes (fullscreen, iframe) are in shell.css */

/* Responsive */
@media (max-width: 768px) {
    #header {
        padding: 0 1em;
    }

    #header nav {
        display: none;
    }

    main {
        padding: 4em 1em 1em 1em;
    }

    .stats-grid {
        gap: 0.5em;
    }

    .stat-card {
        min-width: 140px;
        padding: 1em 1.25em;
    }

    .modal {
        margin: 1em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }
}

/* Tablet landscape (960px) */
@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
    }

    .form-row > * {
        width: 100%;
    }
}

/* Mobile landscape (600px) */
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-header .actions {
        width: 100%;
        justify-content: flex-start;
    }

    table {
        font-size: 0.85em;
    }

    th, td {
        padding: 0.5em;
    }
}

/* Large displays (1920px+) */
@media (min-width: 1920px) {
    main {
        max-width: 1600px;
    }

    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Site footer */
.site-footer {
    text-align: center;
    padding: 2em 1em;
    margin-top: 2em;
    border-top: 1px solid var(--border-light);
    color: #000;
    font-size: 0.85em;
}

.site-footer a {
    color: #000;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer .separator {
    margin: 0 0.5em;
    color: #ccc;
}

/* ============================================
   Dark Theme - Page Content Styles
   Shell/header dark theme styles are in shell.css
   ============================================ */

/* Dark theme: Notification bell */
html.dark-theme .notification-bell .bell-button {
    color: var(--text-disabled);
}

html.dark-theme .notification-dropdown {
    background: var(--bg-primary);
    border: 1px solid #2a3a55;
}

html.dark-theme .notification-dropdown .dropdown-header {
    border-color: #2a3a55;
    color: #eee;
}

html.dark-theme .notification-item {
    border-color: #2a3a55;
}

html.dark-theme .notification-item:hover {
    background: var(--bg-secondary);
}

html.dark-theme .notification-item.unread {
    background: rgba(138, 79, 255, 0.15);
}

html.dark-theme .notification-item .notification-title {
    color: #eee;
}

html.dark-theme .notification-item .notification-message {
    color: var(--text-disabled);
}

html.dark-theme .notification-dropdown .empty-state {
    color: var(--text-disabled);
}

/* Dark theme: Content area */
html.dark-theme main h1,
html.dark-theme main h2,
html.dark-theme main h3 {
    color: #eee;
}

html.dark-theme .card,
html.dark-theme .profile-card,
html.dark-theme .dashboard-card {
    background: var(--bg-primary);
    border-color: #2a3a55;
}

html.dark-theme .card-header {
    border-color: #2a3a55;
}

html.dark-theme table {
    background: var(--bg-primary);
}

html.dark-theme table th {
    background: #16213e;
    color: #ccc;
}

html.dark-theme table td {
    border-color: #2a3a55;
    color: #ddd;
}

html.dark-theme table tr:hover td {
    background: var(--bg-secondary);
}

/* Dark theme stat-cards with soft neon glow */
html.dark-theme .stat-card {
    background: var(--bg-primary);
    border: 1px solid rgba(196, 124, 255, 0.4);
    box-shadow: 0 0 8px rgba(196, 124, 255, 0.1);
}

html.dark-theme .stat-card:hover {
    box-shadow: 0 0 12px rgba(196, 124, 255, 0.2);
    border-color: rgba(196, 124, 255, 0.6);
}

html.dark-theme .stat-card .stat-icon {
    color: var(--accent);
}

html.dark-theme .stat-card .number {
    color: #eee;
}

html.dark-theme .stat-card .label {
    color: var(--text-disabled);
}

/* Dark theme: soft neon blue card */
html.dark-theme .stat-card.alt {
    border-color: rgba(124, 200, 255, 0.4);
    box-shadow: 0 0 8px rgba(124, 200, 255, 0.1);
}

html.dark-theme .stat-card.alt:hover {
    box-shadow: 0 0 12px rgba(124, 200, 255, 0.2);
    border-color: rgba(124, 200, 255, 0.6);
}

html.dark-theme .stat-card.alt .stat-icon {
    color: #7cc8ff;
}

/* Dark theme: soft neon cyan card */
html.dark-theme .stat-card.success {
    border-color: rgba(124, 255, 220, 0.4);
    box-shadow: 0 0 8px rgba(124, 255, 220, 0.1);
}

html.dark-theme .stat-card.success:hover {
    box-shadow: 0 0 12px rgba(124, 255, 220, 0.2);
    border-color: rgba(124, 255, 220, 0.6);
}

html.dark-theme .stat-card.success .stat-icon {
    color: #7cffdc;
}

/* Dark theme: soft neon peach card */
html.dark-theme .stat-card.warning {
    border-color: rgba(255, 176, 124, 0.4);
    box-shadow: 0 0 8px rgba(255, 176, 124, 0.1);
}

html.dark-theme .stat-card.warning:hover {
    box-shadow: 0 0 12px rgba(255, 176, 124, 0.2);
    border-color: rgba(255, 176, 124, 0.6);
}

html.dark-theme .stat-card.warning .stat-icon {
    color: #ffb07c;
}

/* Dark theme badges - inverted monochrome */
html.dark-theme .badge {
    background: #eee;
    color: #222;
}

/* Dark theme footer */
html.dark-theme .site-footer {
    border-color: #2a3a55;
    color: #fff;
}

html.dark-theme .site-footer a {
    color: #fff;
}

html.dark-theme .site-footer .separator {
    color: #444;
}

html.dark-theme .button {
    background: var(--accent);
}

html.dark-theme .button.alt {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

html.dark-theme input[type="text"],
html.dark-theme input[type="password"],
html.dark-theme input[type="email"],
html.dark-theme select,
html.dark-theme textarea {
    background: #16213e;
    border-color: #2a3a55;
    color: #ddd;
}

html.dark-theme input:focus,
html.dark-theme select:focus,
html.dark-theme textarea:focus {
    border-color: var(--accent);
}

html.dark-theme .toggle-group {
    border-color: #2a3a55;
}

html.dark-theme .toggle-group button {
    background: var(--bg-primary);
    color: var(--text-disabled);
}

html.dark-theme .toggle-group button:hover:not(.active) {
    background: var(--bg-secondary);
}

html.dark-theme .toggle-group button.active {
    background: var(--accent);
    color: #fff;
}

html.dark-theme select.inline,
html.dark-theme input.inline {
    background: var(--bg-primary);
    border-color: #2a3a55;
    color: #ddd;
}

html.dark-theme .toggle-switch .slider {
    background-color: #2a3a55;
}

html.dark-theme .toggle-switch input:checked + .slider {
    background-color: var(--accent);
}

html.dark-theme .rangeslider {
    background: var(--accent);
}

html.dark-theme .rangeslider::-webkit-slider-thumb {
    background: var(--bg-primary);
}

html.dark-theme .rangeslider::-moz-range-thumb {
    background: var(--bg-primary);
}

html.dark-theme .rangeslider-value {
    color: var(--text-disabled);
}

html.dark-theme .form-group label {
    color: #bbb;
}

html.dark-theme .info-row .label {
    color: var(--text-muted);
}

html.dark-theme .info-row .value {
    color: #ddd;
}

html.dark-theme .preference-label {
    color: #ddd;
}

html.dark-theme .preference-label .desc {
    color: var(--text-muted);
}

html.dark-theme .preference-row {
    border-color: #2a3a55;
}

html.dark-theme .alert.success {
    background: #1f3a2e;
    color: #6dbe6d;
    border-color: #2a5a3a;
}

html.dark-theme .alert.error {
    background: #3a1f2e;
    color: #d67070;
    border-color: #5a2a3a;
}

html.dark-theme .theme-selector {
    background: #16213e;
}

html.dark-theme .theme-selector label {
    color: #ddd;
}

html.dark-theme .theme-toggle {
    border-color: #2a3a55;
}

html.dark-theme .theme-toggle button {
    background: var(--bg-primary);
    color: var(--text-disabled);
}

html.dark-theme .theme-toggle button:hover:not(.active) {
    background: var(--bg-secondary);
}

/* Dark theme: Visualization config page */
html.dark-theme .component-card {
    background: var(--bg-primary);
    border-color: #2a3a55;
}

html.dark-theme .component-card h3 {
    color: #eee;
}

html.dark-theme .component-card .version {
    color: var(--text-disabled);
}

html.dark-theme .config-item {
    border-color: #2a3a55;
}

html.dark-theme .config-item .label {
    color: var(--text-disabled);
}

html.dark-theme .config-item .value {
    color: #ddd;
}

html.dark-theme .endpoint-item {
    background: #16213e;
    color: #ddd;
}

html.dark-theme .endpoint-item code {
    color: #ddd;
}

html.dark-theme .endpoint-item span {
    color: var(--text-disabled);
}

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

html.dark-theme .modal {
    background: var(--bg-primary);
    border: 1px solid #2a3a55;
    color: var(--text-primary);
}

html.dark-theme .modal h2,
html.dark-theme .modal h3 {
    color: #eee;
}

html.dark-theme .modal .form-group label {
    color: #bbb;
}

html.dark-theme .modal .modal-actions {
    border-top-color: #2a3a55;
}

/* Dark theme: Empty states */
html.dark-theme .empty-state {
    color: var(--text-muted);
}

/* Dark theme: Breadcrumbs */
html.dark-theme .breadcrumbs {
    color: var(--text-muted);
}

html.dark-theme .breadcrumbs a {
    color: var(--text-disabled);
}

html.dark-theme .breadcrumbs a:hover {
    color: var(--accent);
}

/* Dark theme: Form hints and errors */
html.dark-theme .form-hint {
    color: var(--text-muted);
}

html.dark-theme .form-error {
    color: #f87171;
}

/* Dark theme: Toast notifications */
html.dark-theme .toast {
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ============================================
   Micro-Interactions & Polish
   Premium easing, focus rings, scrollbars,
   stat card reveal, table accent, breathing
   ============================================ */

/* Tabular nums on stat values -- prevents layout shift during updates */
.stat-value,
.value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Stat card dark theme hover glow */
html.dark-theme .stat-card:hover {
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* Circle button depth: inset highlight + active press */
.circle-btn {
    transition: all 0.15s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.circle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Button hover lift */
.button:hover,
button.button:hover {
    transform: translateY(-1px);
}

.button:active,
button.button:active {
    transform: scale(0.97);
}

/* Focus-visible ring system */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

html.dark-theme *:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Input focus glow ring */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Modern scrollbars (6px thin) */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

html.dark-theme * {
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

html.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Table row left accent bar reveal (opt-in: add .accent-rows to table) */
.accent-rows tr {
    position: relative;
}

.accent-rows tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.accent-rows tbody tr:hover::before {
    transform: scaleY(1);
}

.accent-rows tbody tr:hover {
    background: var(--accent-bg);
}

/* Search input expand on focus */
.search-expand {
    transition: width 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.search-expand:focus {
    width: 260px;
}

/* Breathing animation (scanner/enrollment waiting states) */
@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.breathing {
    animation: breathe 2s ease-in-out infinite;
}

/* Highlight pulse (new item added notification) */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 4px var(--accent-bg); }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.highlight-pulse {
    animation: highlight-pulse 2s ease-out;
}

/* Reveal on hover (destructive actions hidden until parent hovered) */
.reveal-on-hover .reveal-target {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.reveal-on-hover:hover .reveal-target {
    opacity: 1;
}

/* Layered shadow system for depth */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02); }
.shadow-md { box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04); }
.shadow-lg { box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06); }

/* ============================================
   Filter Bar & Chips
   Standard search + filter pattern
   ============================================ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em 1em;
    background: var(--bg-tertiary);
    border-radius: 6px;
    flex-wrap: wrap;
}

.filter-bar label {
    font-size: 0.85em;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-bar select,
.filter-bar input[type="text"] {
    padding: 0.4em 0.8em;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85em;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-bar select:focus,
.filter-bar input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
    outline: none;
}

html.dark-theme .filter-bar {
    background: var(--bg-secondary);
}

html.dark-theme .filter-bar select,
html.dark-theme .filter-bar input[type="text"] {
    background: var(--bg-primary);
    border-color: var(--border-default);
    color: var(--text-primary);
}

html.dark-theme .filter-bar select:focus,
html.dark-theme .filter-bar input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

html.dark-theme .filter-bar label {
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .filter-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .filter-bar label { display: none; }
    .filter-bar select { width: 100%; }
}

.filter-chips {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.35em 0.75em;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

html.dark-theme .filter-chip {
    border-color: var(--border-default);
    color: var(--text-muted);
}

html.dark-theme .filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

html.dark-theme .filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================
   Wizard (multi-step enrollment flows)
   ============================================ */

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 1.5em;
}

.wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-default);
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.wizard-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-bg);
    transform: scale(1.2);
}

.wizard-dot.complete {
    background: var(--success);
}

.wizard-connector {
    width: 30px;
    height: 2px;
    background: var(--border-default);
    transition: background 0.3s ease;
}

.wizard-connector.complete {
    background: var(--success);
}

.wizard-step {
    display: none;
    text-align: center;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wizard-icon {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: var(--accent);
}

.wizard-actions {
    display: flex;
    gap: 0.75em;
    justify-content: center;
    margin-top: 1.5em;
}

html.dark-theme .wizard-dot {
    background: var(--border-default);
}

html.dark-theme .wizard-connector {
    background: var(--border-default);
}

/* ============================================
   Inline Alerts (page-level feedback)
   ============================================ */

.alert-inline {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.75em 1em;
    border-radius: 6px;
    font-size: 0.9em;
    margin-bottom: 0.75em;
}

.alert-inline i {
    font-size: 1.1em;
    flex-shrink: 0;
}

.alert-inline.success {
    background: var(--success-bg);
    color: var(--success);
}

.alert-inline.error {
    background: var(--error-bg);
    color: var(--error);
}

.alert-inline.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.alert-inline.info {
    background: var(--info-bg);
    color: var(--info);
}

.alert-inline .alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s;
}

.alert-inline .alert-close:hover {
    opacity: 1;
}

html.dark-theme .alert-inline.success { color: var(--success-light); }
html.dark-theme .alert-inline.error { color: var(--error-light); }
html.dark-theme .alert-inline.warning { color: var(--warning-light); }
html.dark-theme .alert-inline.info { color: var(--info-light); }

/* ============================================
   Bulk Actions Bar
   ============================================ */

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em 1em;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: 6px;
    margin-top: 0.75em;
    animation: fadeIn 0.3s ease;
}

.bulk-actions .selected-count {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent);
}

.bulk-actions .bulk-btns {
    display: flex;
    gap: 0.5em;
    margin-left: auto;
}

/* ============================================
   Utility Classes (to replace inline styles)
   ============================================ */

/* Flexbox utilities */
.flex { display: flex; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap utilities */
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* Margin utilities */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: 0.25rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 0.25rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-sm { padding: 0.5rem; }
.p-md { padding: 1rem; }
.p-lg { padding: 1.5rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: #666; }
html.dark-theme .text-muted { color: #999; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Visibility */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
