/* Stable layout CSS for local development and IIS publish.
   This file is served directly from wwwroot and does not depend on Blazor CSS isolation bundles. */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    color: white;
}

.page main {
    flex: 1;
    background: #0d0d0d;
}

.sidebar {
    background: #050505;
    border-right: 1px solid #D4AF37;
}

.top-row {
    background: #0d0d0d;
    border-bottom: 1px solid #333;
    justify-content: flex-end;
    height: 64px;
    display: flex;
    align-items: center;
}

    .top-row a,
    .top-row .btn-link {
        color: white;
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row a:hover,
        .top-row .btn-link:hover {
            color: #D4AF37;
        }

@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;
        height: 100vh;
        overflow: hidden;
    }

    .sidebar {
        width: 275px;
        min-width: 275px;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
        scrollbar-width: thin;
        scrollbar-color: #555 #050505;
    }

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: #050505;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 8px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #D4AF37;
    }

    .page main {
        min-width: 0;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .top-row,
    .page article {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

#blazor-error-ui {
    background: #b32121;
    color: white;
    bottom: 0;
    display: none;
    left: 0;
    padding: .75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }

/* Navigation styling */
.sidebar-logo {
    text-align: center;
    padding: 18px 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}

.logo-image {
    width: 115px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

.company-name {
    color: #D4AF37;
    font-size: 18px;
    font-weight: bold;
}

.company-slogan {
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: .8;
    margin-top: 4px;
}

.nav {
    padding: 0 8px;
}

.nav-item {
    margin-bottom: 3px;
}

.nav-link {
    display: block;
    color: white;
    border-radius: 8px;
    padding: 9px 10px;
    text-decoration: none;
    transition: .2s;
    font-size: 15px;
}

    .nav-link:hover {
        background-color: #1a1a1a;
        color: #D4AF37;
    }

    .nav-link.active {
        background-color: #D4AF37;
        color: black;
        font-weight: bold;
    }

.nav-section-title {
    color: #D4AF37;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 18px;
    margin-bottom: 6px;
    padding-left: 4px;
}

.ticket-indent {
    padding-left: 12px;
}

.nav-button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.nav-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 18px;
    margin-bottom: 6px;
    padding: 4px;
    cursor: pointer;
}

.nav-section-toggle:hover {
    color: white;
}

.nav-chevron {
    font-size: 14px;
    line-height: 1;
}
