/* ========== Loyco / Figma design tokens ========== */
:root {
    --loyco-text: #ffffff;
    --loyco-text-secondary: #b0bec5;
    --loyco-surface-l: #113d51;
    --loyco-surface-xl: #113343;
    --loyco-surface-xxl: #0f2834;
    --loyco-border: #1e4a5c;
    --loyco-radius-xl: 32px;
    --loyco-blur: 64px;
    --loyco-font: 'Sora', sans-serif;
}

.text-secondary {
    color: var(--loyco-text-secondary) !important;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--loyco-font);
    background-color: var(--loyco-surface-xxl);
    color: var(--loyco-text);
}

/* Remove default bootstrap styles that conflict with MudBlazor dark theme */
a {
    color: #26c6da;
}

a:hover {
    color: #4dd0e1;
}

/* Layout: Figma Loyco surfaces */
.loyco-appbar {
    background-color: var(--loyco-surface-xl) !important;
    border-bottom: 1px solid var(--loyco-border) !important;
}

.loyco-drawer {
    background-color: var(--loyco-surface-l) !important;
    border-right: 1px solid var(--loyco-border) !important;
}

.loyco-drawer-panel {
    background-color: var(--loyco-surface-xl) !important;
}

.loyco-main {
    background-color: var(--loyco-surface-xxl) !important;
    min-height: 100vh;
}

.loyco-nav-section {
    color: #7a9ca8 !important; /* Muted text on L surface */
}

.loyco-avatar-placeholder {
    background-color: var(--loyco-border) !important;
}

.loyco-divider {
    border-color: var(--loyco-border) !important;
}

/* Loyco-style cards and panels: use Figma surface colors and radius */
.mud-paper.loyco-card,
.loyco-card {
    background-color: var(--loyco-surface-xl) !important;
    border: 1px solid var(--loyco-border) !important;
    border-radius: var(--loyco-radius-xl) !important;
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--loyco-surface-xxl);
}

::-webkit-scrollbar-thumb {
    background: var(--loyco-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--loyco-surface-l);
}

/* Blazor error UI */
#blazor-error-ui {
    background: #ef5350;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
