/* =========================
   BASE
========================= */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
}

/* Links */
a, .btn-link {
    color: #2563eb;
}

/* Buttons */
.btn-primary {
    color: #fff;
    background-color: #2563eb;
    border-color: #1d4ed8;
}

/* Focus */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3b82f6;
}

/* Content spacing */
.content {
    padding-top: 1rem;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #22c55e;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
}

/* =========================
   LAYOUT (FIXES SCROLL ISSUE)
========================= */

.sidebar {
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 2px 0 8px rgba(0,0,0,0.25);
    padding :10px;
}
.nav-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
    /* Chrome */
    .nav-scrollable::-webkit-scrollbar {
        width: 6px;
    }

    .nav-scrollable::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,0.15);
        border-radius: 3px;
    }

.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

    .main-content > .p-4 {
        overflow-y: auto;
    }

/* =========================
   SIDEBAR DESIGN
========================= */

/* Title */
.sidebar h4 {
    font-weight: 600;
    font-size: 1.2rem;
    padding-left: 4px;
    color: #fff;
}

/* Divider */
.sidebar hr {
    border-color: rgba(255,255,255,0.08);
}

/* Section headers */
.group-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 12px 14px 6px;
    letter-spacing: 0.05em;
}

/* Links */
.nav-link {
    color: #cbd5f1;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

    /* Hover */
    .nav-link:hover {
        background-color: #1e293b;
        color: #fff;
    }

    /* Active (IMPORTANT VISUAL) */
    .nav-link.active {
        background-color: #2563eb;
        color: white;
        font-weight: 500;
        border-left: 3px solid #60a5fa;
    }

/* Submenu toggle */
.sub-toggle {
    cursor: pointer;
}

/* Nested menus */
.nav .nav {
    margin-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-left: 10px;
}

/* Icons */
.nav-link i {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* =========================
   TOP BAR
========================= */

.topbar {
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* =========================
   MODALS (cleaned)
========================= */

.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}

/* =========================
   ERROR UI
========================= */

.blazor-error-boundary {
    background: #b91c1c;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* =========================
   CHECKBOX
========================= */

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
.sidebar-header {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 14px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar fixed */
.sidebar {
    width: 300px;
}

/* Main content takes remaining space */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    padding-left: 1rem;
}
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
}