:root {
    font-size: 16px;
}

body {
    font-size: 1rem;
    background-color: #f4f6f9;
}

.sidebar {
    height: 100vh;
    background: #343a40;
    color: #fff;
    position: fixed;
    width: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    z-index: 1045;
}

.sidebar a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

.sidebar a:hover {
    background: #495057;
    color: #fff;
}

.sidebar .active {
    background: #0d6efd;
    color: #fff;
}

.sidebar .nav-link {
    transition: all 0.2s;
    border-radius: 6px;
    margin: 2px 0;
    font-size: 0.95rem;
}

.sidebar .nav-link i {
    color: #ffc107;
    font-size: 1.1rem;
}

.content-wrapper {
    margin-left: 260px;
    padding: 20px;
}

.sidebar-backdrop {
    display: none;
}

.mobile-menu-btn {
    display: none;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-control,
.form-select {
    border-radius: 6px;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

.app-footer {
    margin-top: 1.5rem;
    padding: 0.75rem 0 0.25rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.muted {
    color: #6c757d;
}

.auth-body {
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    min-height: 100vh;
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    width: min(480px, 95vw);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dce5f3;
    box-shadow: 0 8px 24px rgba(19, 36, 58, 0.08);
    padding: 1.1rem 1rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease-in-out;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .content-wrapper {
        margin-left: 0;
        padding: 12px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1040;
    }
}
