body {
    background-color: #f8f9fa;
}

body.login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #0d47a1 0%, #1565c0 45%, #1e88e5 100%);
    background-attachment: fixed;
}
body.login-page .navbar {
    background: transparent !important;
    box-shadow: none;
}
.login-wrap {
    padding-top: 2.5rem;
}
.login-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.login-hero h5 {
    color: #fff;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.login-hero p {
    color: rgba(255, 255, 255, 0.85) !important;
}
.login-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(13, 71, 161, 0.35);
}
.login-card::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #0d47a1, #1e88e5, #42a5f5);
}
.login-card .form-control {
    padding: 0.65rem 0.9rem;
    border-radius: 0.6rem;
    border-color: #dbe3ec;
}
.login-card .form-control:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15);
}
.login-btn {
    padding: 0.65rem;
    border-radius: 0.6rem;
    background: linear-gradient(90deg, #0d47a1, #1e88e5);
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(13, 71, 161, 0.35);
}
.sidebar .nav-link {
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}
.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}
.sidebar .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.don-vi-tree ul {
    list-style: none;
    padding-left: 1.5rem;
}
.don-vi-node {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}
.don-vi-node.co-du-lieu {
    background-color: #d1e7dd;
    border-color: #a3cfbb;
}
.don-vi-node.chua-co-du-lieu {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Tab "Cán bộ, giáo viên, nhân viên" / "Học sinh" trong trang Báo cáo số liệu */
.report-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: none;
    flex-wrap: wrap;
}
.report-tabs .nav-item {
    flex: 1 1 240px;
}
.report-tab {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border: 2px solid #e3e6ea !important;
    border-radius: 0.85rem;
    background-color: #fff;
    color: #495057;
    text-align: left;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.report-tab:hover {
    border-color: #c4d2e8 !important;
}
.report-tab-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef1f5;
    color: #6c757d;
    transition: background-color .15s ease, color .15s ease;
}
.report-tab-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.report-tab-title {
    font-weight: 600;
    color: inherit;
}
.report-tab-sub {
    font-size: 0.78rem;
    color: #8a94a6;
}
.report-tab-nhansu.active {
    border-color: #0d6efd !important;
    background-color: #eaf2ff;
    color: #0d47a1;
    box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.15);
}
.report-tab-nhansu.active .report-tab-icon {
    background-color: #0d6efd;
    color: #fff;
}
.report-tab-hocsinh.active {
    border-color: #198754 !important;
    background-color: #eafaf1;
    color: #146c43;
    box-shadow: 0 0.25rem 0.75rem rgba(25, 135, 84, 0.15);
}
.report-tab-hocsinh.active .report-tab-icon {
    background-color: #198754;
    color: #fff;
}
