.admin-reports-page .navbar-bg {
    background-color: #000080;
}

.admin-report-navbar-search {
    position: relative;
    width: min(430px, 100%);
}

.admin-report-navbar-search .form-control {
    height: 44px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #35405d;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 44px 10px 16px;
    box-shadow: 0 6px 12px rgba(8, 13, 90, 0.14);
}

.admin-report-navbar-search .form-control::placeholder {
    color: #7f88a0;
}

.admin-report-navbar-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #121c3c;
}

.admin-reports-body {
    display: grid;
    gap: 18px;
}

.admin-report-toolbar-card {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #f8fafd;
    box-shadow: none;
}

.admin-report-toolbar-card .card-body {
    padding: 20px;
}

.admin-report-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-report-range-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-report-range-btn {
    border: 1px solid #d6deeb;
    background: #fff;
    color: #5c6a82;
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.admin-report-range-btn:hover,
.admin-report-range-btn:focus {
    background: #ecf1ff;
    color: #2d458f;
}

.admin-report-range-btn.active {
    border-color: #000080;
    background: #000080;
    color: #fff;
    box-shadow: 0 9px 16px rgba(0, 0, 128, 0.2);
}

.admin-report-filter-field {
    min-width: 185px;
}

.admin-report-filter-field label {
    margin: 0 0 5px;
    color: #677489;
    font-size: 12px;
    font-weight: 700;
}

.admin-report-filter-field .form-control {
    height: 38px;
    border-radius: 10px;
    border-color: #d5deec;
    color: #415070;
    font-size: 14px;
    font-weight: 600;
}

.admin-report-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-report-refresh-btn,
.admin-report-export-btn {
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
}

.admin-report-refresh-btn {
    background: #f2f6ff;
    border: 1px solid #ced9ee;
    color: #2f467f;
}

.admin-report-refresh-btn:hover,
.admin-report-refresh-btn:focus {
    background: #dce8ff;
    color: #22325c;
}

.admin-report-export-btn {
    border: 0;
    background: #000080;
    color: #fff;
    box-shadow: 0 8px 14px rgba(0, 0, 128, 0.2);
}

.admin-report-export-btn:hover,
.admin-report-export-btn:focus {
    background: #000069;
    color: #fff;
}

.admin-report-last-updated {
    margin: 10px 0 0;
    color: #7f8aa0;
    font-size: 12px;
    font-weight: 600;
}

.admin-report-feedback {
    margin: 6px 0 0;
    min-height: 19px;
    color: #4163be;
    font-size: 12px;
    font-weight: 700;
}

.admin-report-feedback.is-error {
    color: #cc3f3f;
}

.admin-report-kpi-row > div {
    margin-bottom: 14px;
}

.admin-report-kpi-card {
    height: 100%;
    border: 1px solid #e5ebf4;
    border-radius: 14px;
    background: #fff;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 14px 24px rgba(23, 35, 62, 0.05);
}

.admin-report-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.admin-report-kpi-card.is-blue .admin-report-kpi-icon {
    background: linear-gradient(135deg, #4f6ff0, #3751bf);
}

.admin-report-kpi-card.is-teal .admin-report-kpi-icon {
    background: linear-gradient(135deg, #0fb2ae, #0f8c88);
}

.admin-report-kpi-card.is-orange .admin-report-kpi-icon {
    background: linear-gradient(135deg, #f4ac2d, #ea8f1a);
}

.admin-report-kpi-card.is-indigo .admin-report-kpi-icon {
    background: linear-gradient(135deg, #6776ff, #4c59cc);
}

.admin-report-kpi-content p {
    margin: 0;
    color: #69758b;
    font-size: 12px;
    font-weight: 700;
}

.admin-report-kpi-content h3 {
    margin: 4px 0 0;
    color: #243454;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-report-kpi-content small {
    display: block;
    margin-top: 6px;
    color: #8893a8;
    font-size: 12px;
    font-weight: 600;
}

.admin-report-card {
    border: 1px solid #e2e8f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.admin-report-card .card-header {
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    padding: 16px 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.admin-report-card .card-header h4 {
    margin: 0;
    color: #2f3c59;
    font-size: 19px;
    font-weight: 700;
}

.admin-report-card .card-header p {
    margin: 0;
    color: #7f8aa0;
    font-size: 12px;
    font-weight: 600;
}

.admin-report-card .card-body {
    padding: 16px 18px 18px;
}

#reportGrowthChart {
    width: 100% !important;
    height: 320px !important;
}

.admin-report-status-card .card-body {
    display: grid;
    gap: 14px;
}

#reportStatusChart {
    width: 100% !important;
    height: 240px !important;
}

.admin-report-metric-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px dashed #dce4ef;
}

.admin-report-metric-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed #dce4ef;
}

.admin-report-metric-list li:last-child {
    border-bottom: 0;
}

.admin-report-metric-list span {
    color: #73819a;
    font-size: 12px;
    font-weight: 600;
}

.admin-report-metric-list strong {
    color: #2d3b58;
    font-size: 14px;
    font-weight: 800;
}

.admin-report-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-report-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
}

.admin-report-table thead th {
    border: 0;
    background: #eef2f4;
    color: #575f6f;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 12px;
    white-space: nowrap;
}

.admin-report-table tbody td {
    border: 0;
    color: #5f6b7f;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 12px;
    vertical-align: middle;
}

.admin-report-table tbody tr + tr td {
    border-top: 1px solid #edf1f6;
}

.admin-report-course-link {
    color: #243f9a;
    font-weight: 700;
}

.admin-report-course-link:hover {
    color: #1f337a;
    text-decoration: none;
}

.admin-report-table-empty {
    text-align: center;
    color: #8a93a5;
    font-size: 13px;
    font-weight: 600;
    padding: 22px 10px;
}

.admin-report-activity-time {
    color: #7f899b;
    font-size: 12px;
    font-weight: 700;
}

.admin-report-activity-title {
    color: #2f3c59;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-report-activity-detail {
    color: #78839a;
    font-size: 12px;
}

.admin-report-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 24px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
}

.admin-report-type-pill.is-student {
    background: #e8f0ff;
    color: #2d59b6;
}

.admin-report-type-pill.is-course {
    background: #e8fbf8;
    color: #11857d;
}

.admin-report-type-pill.is-support {
    background: #fff5dc;
    color: #a36a13;
}

.admin-report-type-pill.is-other {
    background: #eff2f6;
    color: #59657a;
}

@media (max-width: 1200px) {
    .admin-report-toolbar {
        align-items: flex-start;
    }

    .admin-report-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-report-navbar-search {
        max-width: 280px;
    }

    .admin-report-kpi-content h3 {
        font-size: 24px;
    }

    #reportGrowthChart {
        height: 260px !important;
    }

    #reportStatusChart {
        height: 200px !important;
    }
}
