:root {
    --theme-bg: rgb(21 22 53);
    --theme-surface: #232443;
    --theme-border: #929292;
    --theme-accent: #f6c26a;
    --theme-accent-strong: #eea933;
    --theme-link: #005bbb;
    --theme-link-hover: #004a97;
    --theme-text: rgba(255, 255, 255, 0.92);
    --theme-text-soft: rgba(255, 255, 255, 0.86);
    --theme-text-muted: rgba(255, 255, 255, 0.72);
    --theme-danger: #e50000;
    --theme-danger-soft: #ffd1d1;
    --theme-focus: rgba(0, 91, 187, 0.20);

    --bsfk-navy: var(--theme-bg);
    --bsfk-navy-soft: var(--theme-surface);
    --bsfk-navy-soft-2: var(--theme-surface);
    --bsfk-gold: var(--theme-accent);
    --bsfk-gold-strong: var(--theme-accent-strong);
    --bsfk-text: var(--theme-text);
    --bsfk-muted: var(--theme-text-muted);
    --bsfk-border: var(--theme-border);
    --bsfk-focus: var(--theme-focus);
}

#blazor-error-ui {
    display: none;
}

html, body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--theme-bg);
}

a, .btn-link {
    color: var(--theme-link);
}

    a:hover, .btn-link:hover {
        color: var(--theme-link-hover);
    }

    /* Keep Bootstrap defaults for buttons; page-specific components can theme their own CTAs. */

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.35), 0 0 0 0.25rem var(--theme-focus);
    }

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.register-input,
.forgot-input,
.login-input {
    width: 100%;
    max-width: 400px;
    margin: auto;
    color: white;
    margin-bottom: 10px;
    line-height: 25px;
    border: 1px solid var(--theme-border);
    padding: 10px;
    border-radius: 15px;
    background: var(--theme-surface);
}

.invalid {
    outline: 1px solid var(--theme-danger);
}

.validation-message {
    color: var(--theme-danger);
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: var(--theme-border);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-shell {
    min-height: 100vh;
    width: 100%;
    text-align: center;
}

.login-card {
    color: rgba(255, 255, 255, 0.92);
}

.login-header {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.login-logo {
    width: 350px;
    height: 350px;
}

.login-welcome {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.86);
}

.login-club {
    font-size: 1.75rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    text-align: center;
    color: #f6c26a;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.register-form,
.login-form {
    display: grid;
    margin-top: 0.75rem;
    max-width: 400px;
    margin: auto;
}

.register-field,
.login-field {
    position: relative;
}

.forgot-button,
.register-button,
.login-button {
    display: block;
    margin-top: 1rem;
    border-radius: 14px;
    padding: 5px;
    line-height: 45px;
    width: 100%;
    font-weight: 900;
    font-size: 1.15rem;
    background: #eea933;
    color: white;
    margin: auto;
}

.login-forgot {
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

    .login-forgot:hover {
        text-decoration: underline;
        color: rgba(255, 255, 255, 0.95);
    }

.login-contact {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
}

    .login-contact a {
        color: rgba(255, 255, 255, 0.86);
        text-decoration: underline;
    }

:global(.text-danger) {
    color: #ffd1d1 !important;
}

:global(.validation-message) {
    font-size: 0.85rem;
}

/* Migrated from Home.razor.css */
.calendar-page {
    --bsfk-navy: var(--theme-bg);
    --bsfk-navy-soft: var(--theme-surface);
    --bsfk-navy-soft-2: var(--theme-surface);
    --bsfk-gold: var(--theme-accent);
    --bsfk-gold-strong: var(--theme-accent-strong);
    --bsfk-text: var(--theme-text);
    --bsfk-muted: var(--theme-text-muted);
    --bsfk-border: var(--theme-border);
    --bsfk-focus: var(--theme-focus);
}

.calendar-page {
    min-height: 100vh;
    padding: 1.25rem;
    background: var(--bsfk-navy);
    color: var(--bsfk-text);
}

.calendar-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.brand-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32));
}

.brand-text {
    text-align: left;
}

.brand-text span {
    color: var(--bsfk-muted);
    font-size: 0.92rem;
}

.brand-text h1 {
    margin: 0.15rem 0 0;
    font-size: 1.9rem;
    color: var(--bsfk-gold);
    font-weight: 800;
}

.calendar-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 340px;
}

.calendar-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    width: 100%;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-status {
    font-size: 0.82rem;
    color: var(--bsfk-text);
    background: var(--bsfk-navy-soft);
    border: 1px solid var(--bsfk-border);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    line-height: 1;
}

.auth-link {
    font-size: 0.82rem;
    color: var(--theme-text);
    text-decoration: none;
    background: var(--bsfk-gold);
    border: 1px solid var(--bsfk-gold-strong);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    line-height: 1;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: none;
    background: var(--bsfk-gold);
}

.calendar-toolbar h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--bsfk-text);
}

.view-switch {
    display: inline-flex;
    background: var(--bsfk-navy-soft);
    border: 1px solid var(--bsfk-border);
    border-radius: 8px;
    overflow: hidden;
}

.view-switch button {
    border: none;
    background: transparent;
    padding: 0.55rem 1rem;
    color: var(--bsfk-muted);
}

.view-switch button.active {
    background: var(--bsfk-gold);
    color: var(--bsfk-navy);
    font-weight: 700;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    background: var(--bsfk-navy-soft);
    border: 1px solid var(--bsfk-border);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    width: 100%;
}

.calendar-navigation h2 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: capitalize;
}

    .calendar-navigation button {
        border: none;
        background: transparent;
        font-size: 35px;
        width: 35px;
        height: 35px;
        line-height: 0px;
        border-radius: 50%;
        padding: 0px;
        color: var(--bsfk-gold);
    }

.calendar-navigation button:hover {
    background: rgba(240, 180, 58, 0.12);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.weekday-header {
    text-align: center;
    font-weight: 600;
    color: var(--bsfk-muted);
    padding: 0.25rem;
}

.day-cell {
    position: relative;
    min-height: 95px;
    border: 1px solid var(--bsfk-border);
    border-radius: 10px;
    background: var(--bsfk-navy-soft);
    padding: 0.45rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    color: var(--bsfk-text);
}

.day-number {
    position: absolute;
    top: 0.42rem;
    right: 0.48rem;
    font-weight: 700;
    line-height: 1;
}

.day-cell.today {
    border-color: var(--bsfk-gold);
    box-shadow: 0 0 0 1px rgba(240, 180, 58, 0.18), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.day-cell.today .day-number {
    background: var(--bsfk-gold-strong);
    color: #ffffff;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.holiday-hint {
    display: block;
    color: rgba(246, 194, 106, 0.58);
    font-size: 0.66rem;
    line-height: 1.2;
    max-width: calc(100% - 2.2rem);
    margin-bottom: 0.15rem;
}

.day-cell.other-month {
    opacity: 0.45;
}

.day-cell.has-preference {
    border-color: var(--bsfk-gold);
    box-shadow: 0 0 0 1px rgba(240, 180, 58, 0.2);
}

.day-cell small {
    color: var(--bsfk-gold);
    font-size: 0.72rem;
}

.day-overview {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0;
}

.external-day-summary {
    margin-top: auto;
    color: var(--bsfk-gold);
    font-size: 0.72rem;
    font-weight: 700;
}

.slot-section {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.slot-label {
    color: var(--theme-text-soft);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.role-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.role-tag-list.compact {
    gap: 0.18rem;
}

.external-booking-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.external-booking-list.compact {
    gap: 0.18rem;
}

.external-booking-chip,
.external-booking-more {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(246, 194, 106, 0.14);
    border: 1px solid rgba(246, 194, 106, 0.35);
    color: #ffe0a6;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.role-segelflyga {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
}

.role-bogsera {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

.role-larare {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.45);
    color: #bbf7d0;
}

.role-steg2 {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(196, 181, 253, 0.45);
    color: #e9d5ff;
}

.booking-owner {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-view {
    background: var(--bsfk-navy-soft);
    border: 1px solid var(--bsfk-border);
    border-radius: 14px;
    overflow: hidden;
}

.agenda-day-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-bottom: 1px solid rgba(184, 191, 221, 0.14);
    min-height: 68px;
}

.agenda-day-row.today {
    background: rgba(240, 180, 58, 0.08);
}

.agenda-day-row:last-child {
    border-bottom: none;
}

.agenda-date {
    border: none;
    background: transparent;
    padding: 0.8rem 0.55rem 0.8rem 0.8rem;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.agenda-day-number {
    min-width: 1.8rem;
    color: var(--bsfk-gold);
    font-size: 1.25rem;
    font-weight: 600;
}

.agenda-day-meta {
    color: var(--bsfk-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.agenda-events {
    padding: 0.45rem 0.8rem 0.55rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.agenda-holiday {
    color: rgba(246, 194, 106, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem 0.15rem;
}

.agenda-overview {
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--bsfk-text);
}

.agenda-event,
.agenda-empty {
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.25rem 0.4rem;
    border-radius: 8px;
    color: var(--bsfk-text);
    display: grid;
    grid-template-columns: 14px 140px minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
    column-gap: 0.5rem;
}

.agenda-event:hover,
.agenda-overview:hover,
.agenda-empty:hover,
.agenda-date:hover {
    background: rgba(240, 180, 58, 0.12);
}

.agenda-section {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.5rem;
    align-items: start;
}

.agenda-section-label {
    color: var(--theme-text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 0.18rem;
}

.agenda-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bsfk-gold);
}

.agenda-time {
    color: var(--bsfk-muted);
    font-size: 0.84rem;
}

.agenda-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-details {
    color: var(--theme-text-soft);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-empty {
    display: block;
    color: var(--bsfk-muted);
    font-size: 0.84rem;
    padding-left: 0.5rem;
}

.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.popup {
    width: min(460px, calc(100% - 2rem));
    background: #2c2f5d;
    border: 1px solid rgba(246, 194, 106, 0.55);
    border-radius: 14px;
    padding: 1.15rem;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: var(--bsfk-text);
}

.popup h3 {
    margin-top: 0;
    text-transform: capitalize;
    color: var(--bsfk-text);
}

.popup fieldset {
    border: 1px solid var(--bsfk-border);
    border-radius: 10px;
    padding: 0.9rem;
    margin-bottom: 0.7rem;
    background: rgba(0, 0, 0, 0.14);
}

.popup legend {
    width: auto;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 0.35rem;
    color: var(--bsfk-muted);
}

.popup label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.25rem 0;
    color: var(--bsfk-text);
}

.popup input[type="checkbox"] {
    accent-color: var(--bsfk-gold-strong);
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.popup-actions button {
    border: 1px solid var(--bsfk-border);
    background: var(--bsfk-navy-soft-2);
    color: var(--bsfk-text);
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
}

.popup-actions button.save {
    border-color: var(--bsfk-gold-strong);
    background: var(--bsfk-gold-strong);
    color: #ffffff;
    font-weight: 700;
}

.popup-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.existing-bookings {
    margin-bottom: 0.8rem;
}

.existing-bookings h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--bsfk-muted);
}

.booking-item {
    border: 1px solid var(--bsfk-border);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.booking-item div {
    font-size: 0.82rem;
}

.external-booking-item {
    display: grid;
    gap: 0.2rem;
}

.booking-item-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.remove-booking {
    border: 1px solid #9b4a53;
    background: #522631;
    color: #ffdbe0;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    white-space: nowrap;
    align-self: start;
}

.empty-existing {
    color: var(--bsfk-muted);
    font-size: 0.85rem;
}

.popup-error {
    color: var(--theme-danger-soft);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.popup-info {
    color: var(--bsfk-muted);
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bsfk-border);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
}

.popup-info a {
    color: var(--bsfk-gold);
    text-decoration: none;
    font-weight: 600;
}

.popup-info a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .agenda-day-row {
        grid-template-columns: 90px 1fr;
    }

    .agenda-event,
    .agenda-empty {
        grid-template-columns: 14px 120px minmax(0, 1fr);
    }

    .agenda-details {
        display: none;
    }

    .agenda-section {
        grid-template-columns: 90px 1fr;
    }
}

@media (max-width: 760px) {
    .calendar-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .brand-header {
        justify-content: center;
    }

    .brand-text {
        text-align: center;
    }

    .calendar-header-actions {
        align-items: stretch;
        min-width: 0;
    }

    .calendar-toolbar,
    .toolbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .calendar-page {
        padding: 0.75rem;
    }

    .brand-logo {
        width: 78px;
        height: 78px;
    }

    .brand-text h1 {
        font-size: 1.45rem;
    }

    .month-grid {
        gap: 0.3rem;
    }

    .day-cell {
        min-height: 78px;
        padding: 1.75rem 0.35rem 0.35rem;
    }

    .role-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.32rem;
    }

    .agenda-day-row {
        grid-template-columns: 78px 1fr;
    }

    .agenda-section {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .agenda-event,
    .agenda-empty {
        grid-template-columns: 14px minmax(0, 1fr);
    }

    .agenda-time {
        display: none;
    }

    .agenda-title {
        font-size: 0.84rem;
    }
}

/* Migrated from LoginWith2fa.razor.css */
.twofa-shell {
    padding-top: 1.25rem;
}

.twofa-card {
    max-width: 420px;
    margin: 0 auto;
}

.twofa-info {
    color: var(--theme-text-soft);
    margin: 0 0 0.8rem;
}

.login-remember {
    color: var(--theme-text-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 640px) {
    .twofa-shell {
        padding-top: 0.8rem;
    }
}

/* Migrated from MainLayout.razor.css and NavMenu.razor.css */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row a,
.top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row a:hover,
.top-row .btn-link:hover {
    text-decoration: underline;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand {
    font-size: 1.1rem;
}

.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
}

.nav-item a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

.register-shell {
    min-height: 100vh;
    width: 100%;
    text-align: center;
}

.register-card {
    color: rgba(255, 255, 255, 0.92);
}

.register-header {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.register-logo {
    width: 350px;
    height: 350px;
}

.register-welcome {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.86);
}

/* Logs table */
.logs-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(35, 36, 67, 0.65);
}

.logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

    .logs-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        text-align: left;
        font-weight: 800;
        letter-spacing: 0.01em;
        padding: 0.75rem 0.9rem;
        background: rgba(24, 25, 60, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        white-space: nowrap;
    }

    .logs-table tbody td {
        padding: 0.7rem 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

        .logs-table tbody td .logs-user-time {
            font-size: 12px;
        }

    .logs-table tbody tr:nth-child(odd) {
        background: rgba(255, 255, 255, 0.03);
    }

    .logs-table tbody tr:hover {
        background: rgba(246, 194, 106, 0.08);
    }

.logs-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.86);
}

.logs-user,
.logs-action {
    white-space: nowrap;
}

.logs-details {
    white-space: pre-wrap;
    word-break: break-word;
    min-width: 280px;
}

.logs-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

    .logs-badge.is-ok {
        background: rgba(38, 176, 80, 0.18);
        border-color: rgba(38, 176, 80, 0.45);
        color: #bdf4cd;
    }

    .logs-badge.is-locked {
        background: rgba(229, 0, 0, 0.16);
        border-color: rgba(229, 0, 0, 0.45);
        color: #ffd1d1;
    }

    .logs-badge.is-fail {
        background: rgba(229, 0, 0, 0.16);
        border-color: rgba(229, 0, 0, 0.45);
        color: #ffd1d1;
        opacity: 0.5;
    }

.temp-account-text {
    color: white;
}

/* Alarm loops table */
.loops-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(35, 36, 67, 0.65);
}

.loops-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

    .loops-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        text-align: left;
        font-weight: 800;
        letter-spacing: 0.01em;
        padding: 0.75rem 0.9rem;
        background: rgba(24, 25, 60, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        white-space: nowrap;
    }

    .loops-table tbody td {
        padding: 0.7rem 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        vertical-align: top;
    }

    .loops-table tbody tr:nth-child(odd) {
        background: rgba(255, 255, 255, 0.03);
    }

    .loops-table tbody tr:hover {
        background: rgba(246, 194, 106, 0.08);
    }

.loops-name {
    white-space: nowrap;
    font-weight: 600;
}

.loops-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

    .loops-badge.is-ok {
        background: rgba(38, 176, 80, 0.18);
        border-color: rgba(38, 176, 80, 0.45);
        color: #bdf4cd;
    }

    .loops-badge.is-fail {
        background: rgba(229, 0, 0, 0.16);
        border-color: rgba(229, 0, 0, 0.45);
        color: #ffd1d1;
    }

.forgot-shell {
    min-height: 100vh;
    width: 100%;
    text-align: center;
}

.forgot-card {
    padding: 1.6rem 1.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.92);
}

.forgot-header {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.forgot-logo {
    width: 350px;
    height: 350px;
}

.forgot-welcome {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.86);
}

.forgot-club {
    font-size: 1.75rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    text-align: center;
    color: #f6c26a;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.forgot-form {
    display: grid;
    margin-top: 0.75rem;
    width: 400px;
    margin: auto;
}

.register-secondary,
.forgot-secondary {
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

    .register-secondary:hover,
    .forgot-secondary:hover {
        text-decoration: underline;
        color: rgba(255, 255, 255, 0.95);
    }

:global(.text-danger) {
    color: #ffd1d1 !important;
}

:global(.validation-message) {
    font-size: 0.85rem;
}
