/* ============================================
   G.A.R.D.E.N.20x Admin Web Interface — Dark Theme
   ============================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-input: #0f1729;
    --border-color: #2a3a5c;
    --border-hover: #3a5a8c;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --sidebar-width: 240px;
    --header-height: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== LOGIN PAGE ===== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1a2e 50%, var(--bg-primary) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== LAYOUT ===== */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.sidebar-header .subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

.nav-item .nav-icon {
    width: 24px;
    margin-right: 10px;
    text-align: center;
    font-size: 16px;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .admin-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ===== MAIN CONTENT ===== */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 24px 32px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header .page-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== STATS CARDS ===== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-change {
    font-size: 12px;
    margin-top: 6px;
}

.stat-card .stat-change.positive { color: var(--accent-green); }
.stat-card .stat-change.negative { color: var(--accent-red); }

/* ===== CARDS ===== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

/* ===== ENERGY BARS ===== */

.energy-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.energy-bar-wrapper {
    flex: 1;
    height: 20px;
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.energy-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.energy-bar-fill.green { background: linear-gradient(90deg, #16a34a, #22c55e); }
.energy-bar-fill.yellow { background: linear-gradient(90deg, #ca8a04, #eab308); }
.energy-bar-fill.orange { background: linear-gradient(90deg, #ea580c, #f97316); }
.energy-bar-fill.red { background: linear-gradient(90deg, #dc2626, #ef4444); }

.energy-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.energy-label {
    min-width: 80px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.energy-value {
    min-width: 60px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===== PROGRESS BARS ===== */

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-wrapper {
    flex: 1;
    height: 24px;
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.progress-bar-fill.gold {
    background: linear-gradient(90deg, #ca8a04, #eab308);
}

.progress-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.progress-label {
    min-width: 120px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== TABLES ===== */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

table td {
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(42, 58, 92, 0.4);
}

table tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

table tr:last-child td {
    border-bottom: none;
}

/* ===== ALERTS ===== */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--accent-yellow);
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    text-decoration: none;
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
    text-decoration: none;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    text-decoration: none;
}

.btn-warning {
    background: var(--accent-orange);
    color: white;
}

.btn-warning:hover {
    background: #ea580c;
    text-decoration: none;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

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

/* ===== FORMS ===== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

select.form-control {
    cursor: pointer;
}

/* ===== BADGES ===== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-green { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.badge-yellow { background: rgba(234, 179, 8, 0.15); color: var(--accent-yellow); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

/* ===== GRID LAYOUTS ===== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== CHARACTER LIST ===== */

.character-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(42, 58, 92, 0.3);
}

.character-item:last-child {
    border-bottom: none;
}

.character-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
    flex-shrink: 0;
}

.character-info {
    flex: 1;
    min-width: 0;
}

.character-name {
    font-size: 14px;
    font-weight: 600;
}

.character-role {
    font-size: 11px;
    color: var(--text-muted);
}

.character-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ===== SCENE STATUS ===== */

.scene-status-active {
    color: var(--accent-green);
    font-weight: 600;
}

.scene-status-inactive {
    color: var(--text-muted);
}

.scene-status-timeout {
    color: var(--accent-orange);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-header h2,
    .sidebar-header .subtitle,
    .nav-item .nav-text,
    .nav-item .nav-badge,
    .sidebar-footer .admin-info,
    .logout-btn span {
        display: none;
    }
    
    .sidebar-header {
        padding: 16px 12px;
        text-align: center;
    }
    
    .nav-item {
        padding: 12px;
        justify-content: center;
    }
    
    .nav-item .nav-icon {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== MISC ===== */

.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-yellow { color: var(--accent-yellow); }
.text-red { color: var(--accent-red); }
.text-blue { color: var(--accent-blue); }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== JSON VIEWER ===== */

.json-viewer {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

.json-key { color: var(--accent-cyan); }
.json-string { color: var(--accent-green); }
.json-number { color: var(--accent-orange); }
.json-boolean { color: var(--accent-purple); }
.json-null { color: var(--accent-red); }

/* ===== ANALYTICS PAGE ===== */

.period-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.period-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.period-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* Error state */
.error-state {
    padding: 40px 20px;
}

/* Overview cards */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s;
}

.analytics-card:hover {
    border-color: var(--border-hover);
}

.analytics-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.analytics-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.analytics-card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Charts grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.chart-card.chart-full {
    grid-column: 1 / -1;
}

.chart-header {
    padding: 16px 20px 0;
}

.chart-header h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

.chart-body {
    padding: 16px 20px;
    height: 280px;
    position: relative;
}

.chart-card.chart-full .chart-body {
    height: 300px;
}

/* Data table for top donors */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.data-table code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MEDIA GALLERY ===== */

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.15s;
    text-decoration: none;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
}

.tab.active {
    background: var(--accent-blue);
    color: white;
    font-weight: 600;
}

.media-toolbar {
    margin-bottom: 16px;
}

.media-filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background: #2563eb;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    text-decoration: none;
}

.media-stats-bar {
    display: flex;
    gap: 20px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.media-stats-bar strong {
    color: var(--text-primary);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.media-card:hover {
    border-color: var(--border-hover);
}

.media-card.is-avatar {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 1px var(--accent-yellow);
}

.media-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-input);
    overflow: hidden;
}

.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.media-thumb-link:hover {
    opacity: 0.9;
}

.media-avatar-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(234, 179, 8, 0.9);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.media-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 32px;
    color: var(--text-muted);
    background: var(--bg-input);
}

.media-card-info {
    padding: 10px 12px;
}

.media-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.media-level {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.media-type {
    font-size: 12px;
    color: var(--text-secondary);
}

.media-card-prompt {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.media-cost {
    color: var(--accent-yellow);
    font-weight: 600;
}

.media-date {
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 4px;
}

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

/* Progression */
.progression-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phase-section {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.1);
}

.phase-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.phase-item {
    text-align: center;
}

.phase-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.phase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phase-level {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
}

.phase-type {
    font-size: 10px;
    color: var(--text-muted);
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.comparison-item {
    text-align: center;
}

.comparison-item h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.comparison-img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.comparison-arrow {
    font-size: 36px;
    color: var(--accent-blue);
    font-weight: 700;
}

/* Daily Looks */
.daily-today {
    margin-bottom: 24px;
}

.daily-today h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.daily-today-card {
    display: flex;
    gap: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
}

.daily-today-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.daily-today-info {
    flex: 1;
}

.daily-theme {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.daily-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.daily-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
}

.daily-calendar h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.calendar-day {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
}

.calendar-day.today {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.calendar-day-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.calendar-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 2px;
}

.calendar-theme {
    font-size: 9px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
