@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --gh-bg-color:      rgb(72, 18, 18);           /* deep brick red — panel backgrounds */
    --gh-fg-color:      rgb(215, 195, 165);         /* muted warm parchment — text */
    --gh-border-color:  rgba(190, 120, 60, 0.65);   /* warm copper — borders */
    --gh-felt-color:    #141830;                    /* dark blue-slate — table felt */
    --gh-active-color:  rgb(155, 30, 30);           /* vivid brick — your turn */
    --gh-preact-color:  #9A6818;                    /* amber — can act ahead */
}

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0e0606;
}

a,
.btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

.main .top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
}

.main .top-row>a,
.main .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.sidebar .top-row {
    background-color: rgba(0, 0, 0, 0.4);
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.sidebar .nav-item a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 20;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a,
    .main .top-row .btn-link {
        margin-left: 0;
    }
}

/* MudBlazor checkbox labels get margin-bottom:.5rem from Bootstrap reboot - zero it out */
label.mud-checkbox {
    margin-bottom: 0;
}

/* ── MudBlazor popover / select dropdown — dark theme ─────────────────────
   Override MudBlazor's palette variables at the popover-provider level so
   every .mud-paper and .mud-list-item inside automatically inherits the
   dark theme without needing per-class !important overrides.               */
.mud-popover-provider {
    --mud-palette-surface:               rgb(55, 14, 14);
    --mud-palette-background:            rgb(55, 14, 14);
    --mud-palette-text-primary:          rgb(215, 195, 165);
    --mud-palette-text-secondary:        rgba(215, 195, 165, 0.7);
    --mud-palette-action-default:        rgb(215, 195, 165);
    --mud-palette-action-default-hover:  rgba(215, 195, 165, 0.14);
    --mud-palette-lines-default:         rgba(190, 120, 60, 0.5);
    --mud-palette-primary:               rgb(155, 30, 30);
    --mud-palette-primary-text:          rgb(215, 195, 165);
}

/* Selected item in the list — use the active brick red with full text */
.mud-popover-provider .mud-selected-item {
    background-color: var(--gh-active-color) !important;
    color: var(--gh-fg-color) !important;
    font-weight: 600;
}

/* ── MudBlazor inputs inside dark panels ──────────────────────────────── */
.gh-panel .mud-input-root,
.gh-panel .mud-input-root input,
.gh-panel .mud-input-root textarea,
.gh-panel .mud-input-label,
.gh-panel .mud-select-input {
    color: var(--gh-fg-color) !important;
}
.gh-panel .mud-input-outlined .mud-notched-outline {
    border-color: var(--gh-border-color) !important;
}
.gh-panel .mud-input-outlined:hover .mud-notched-outline {
    border-color: var(--gh-fg-color) !important;
}
