﻿/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    background: #f2dede;
    color: #b94a48;
    padding: 0.6rem 1rem;
    border-top: 1px solid #b94a48;
    z-index: 1000;
}

    #blazor-error-ui.show {
        display: block;
    }

h1:focus {
    outline: none;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

a {
    color: var(--accent-primary);
}

/* ============================================================
   THEME VARIABLES — LIGHT MODE
   ============================================================ */
:root {
    --bg-body: #ffffff;
    --bg-surface: #f7f9fc;
    --bg-surface-alt: #ffffff;
    --text-primary: #0A1A2F;
    --text-secondary: #4A4A4A;
    --border-color: #dee2e6;
    --accent-primary: #007BFF;
    --accent-success: #00C48C;
    --card-bg: #ffffff;
    --card-border: #dee2e6;
    --footer-bg: #0A1A2F;
    --footer-text: #ffffff;
    --sidebar-expanded: 240px;
    --sidebar-collapsed: 56px;
    --navbar-height: 64px;
    --menu-bg: #ffffff;
    --menu-fg: #333333;
    --menu-hover: #f0f0f0;
    --cookie-bg: #e8f2ff;
    --cookie-border: #bcd4f6;
    --cookie-text: #0A1A2F;
    --cookie-modal-bg: #ffffff;
    --cookie-modal-border: #d0d7e2;
    --frame-border: #d0d7e2; /* subtle, neutral */
}

/* ============================================================
   THEME VARIABLES — DARK MODE (Bootstrap 5.3)
   ============================================================ */
html[data-bs-theme="dark"] {
    --bg-body: #0D1117;
    --bg-surface: #161B22;
    --bg-surface-alt: #161B22; /* lighter than #0A0F15 */
    --text-primary: #E6EDF3;
    --text-secondary: #9BA3AE;
    --border-color: #30363D;
    --accent-primary: #2F81F7;
    --accent-success: #2EA043;
    --card-bg: #161B22;
    --card-border: #30363D;
    --footer-bg: #0A0F15;
    --footer-text: #9BA3AE;
    --menu-bg: var(--bg-surface);
    --menu-fg: var(--text-primary);
    --menu-hover: var(--bg-surface-alt);
    --cookie-bg: #1f2a3a;
    --cookie-border: #2f3d52;
    --cookie-text: #e6edf3;
    --cookie-modal-bg: #1c2128;
    --cookie-modal-border: #30363d;
    --frame-border: #30363D; /* GitHub dark border */
}

/* ============================================================
   GLOBAL COMPONENTS
   ============================================================ */
.card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-primary);
}

.upload-box {
    border: 2px dashed var(--border-color);
    background-color: var(--bg-surface-alt);
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

    footer a {
        color: var(--footer-text);
    }
