/* Theme color scheme */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-panel: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --accent: #a78bfa;
    --accent-hover: #8b5cf6;
    --accent-text: #ffffff;
    --error: #ef4444;
    --error-bg: rgba(239,68,68,0.1);
    --error-border: rgba(239,68,68,0.3);
    --folder-icon: #f59e0b;
    --spinner-border: #a78bfa;
}

.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-panel: #0c1222;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border: #1e293b;
    --border-hover: #273549;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-text: #0f172a;
    --error: #ef4444;
    --error-bg: rgba(239,68,68,0.1);
    --error-border: rgba(239,68,68,0.3);
    --folder-icon: #f59e0b;
    --spinner-border: #38bdf8;
}

html, body {
    font-family: 'Geist Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--spinner-border);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error UI */
#blazor-error-ui {
    background: var(--bg-secondary);
    color: var(--error);
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

#blazor-error-ui .reload {
    color: var(--spinner-border);
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}
