:root {
    --primary-color: #0d6efd;
    --dark-color: #172033;
    --light-bg: #f5f7fb;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--light-bg);
}

.login-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(13, 110, 253, 0.08),
            transparent 35%
        ),
        #f5f7fb;
}

.login-card {
    border-radius: 20px;
    overflow: hidden;
}

.brand-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-color);
    color: #fff;

    border-radius: 16px;

    font-size: 28px;

    box-shadow:
        0 10px 25px
        rgba(13, 110, 253, 0.20);
}

.form-control,
.input-group-text {
    min-height: 46px;
}

.form-control:focus {
    border-color: var(--primary-color);

    box-shadow:
        0 0 0 0.2rem
        rgba(13, 110, 253, 0.12);
}

.btn-primary {
    border-radius: 10px;
    font-weight: 600;
}

.input-group-text {
    background: #fff;
}

/* =========================================
   APPLICATION LAYOUT
========================================= */

body {
    margin: 0;
    background: #f5f7fb;
    color: #172033;
}

.app-wrapper {
    min-height: 100vh;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 260px;

    background: #111827;

    color: #fff;

    display: flex;
    flex-direction: column;

    z-index: 1050;

    overflow-y: auto;
}


.sidebar-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 22px 20px;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}


.brand-logo {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0d6efd;

    font-size: 20px;
}


.brand-title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
}


.sidebar-brand small {
    color: #9ca3af;
    font-size: 10px;
    letter-spacing: 2px;
}


.sidebar-user {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px 20px;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}


.user-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}


.user-info {
    min-width: 0;
}

.user-info strong {
    display: block;

    font-size: 13px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.user-info small {
    display: block;

    color: #9ca3af;

    font-size: 11px;

    margin-top: 2px;
}

.sidebar-help-call {
    color: #dc2626 !important;
    font-weight: 600;
}

.sidebar-help-call i {
    color: #dc2626;
}

.sidebar-help-call:hover {
    color: #b91c1c !important;
}

.sidebar-help-call:hover i {
    color: #b91c1c;
}

/* =========================================
   NAVIGATION
========================================= */

.sidebar-nav {
    padding: 15px 12px;

    flex: 1;
}


.nav-section-title {
    padding: 14px 10px 7px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #6b7280;
}


.sidebar .nav-link {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    margin-bottom: 3px;

    border-radius: 8px;

    color: #9ca3af;

    text-decoration: none;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.sidebar .nav-link i {
    width: 20px;

    font-size: 16px;
}


.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.06);

    color: #fff;
}


.sidebar .nav-link.active {
    background: #0d6efd;

    color: #fff;
}


.sidebar-bottom {
    padding: 12px;

    border-top:
        1px solid rgba(255,255,255,0.08);
}


.logout-link:hover {
    background: rgba(220,53,69,0.15) !important;

    color: #ff6b7a !important;
}


/* =========================================
   MAIN
========================================= */

.main-content {
    margin-left: 260px;

    min-height: 100vh;
}


.topbar {
    height: 74px;

    background: #fff;

    border-bottom: 1px solid #e5e7eb;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 25px;

    position: sticky;

    top: 0;

    z-index: 1000;
}


.topbar-title {
    font-size: 17px;

    font-weight: 700;
}


.user-avatar-small {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #0d6efd;

    color: #fff;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 700;

    margin-right: 6px;
}


.content-area {
    padding: 25px;
}


/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-card {
    background: #fff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 16px;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.03);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.dashboard-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.07);
}


.dashboard-icon {
    width: 52px;
    height: 52px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;
}


.icon-blue {
    background: #e8f1ff;
    color: #0d6efd;
}


.icon-green {
    background: #e8f8ef;
    color: #198754;
}


.icon-orange {
    background: #fff2df;
    color: #fd7e14;
}


.icon-purple {
    background: #f1eafe;
    color: #6f42c1;
}


.dashboard-label {
    display: block;

    color: #6b7280;

    font-size: 12px;

    margin-bottom: 4px;
}


.dashboard-card h3 {
    font-size: 25px;

    margin: 0;

    font-weight: 700;
}

.report-contact-link {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.report-contact-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* =========================================
   CONTENT CARD
========================================= */

.content-card {
    background: #fff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    padding: 22px;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.03);
}


.card-header-custom {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.card-header-custom h5 {
    font-weight: 700;
}


/* =========================================
   STAT BOX
========================================= */

.stat-box {
    background: #f8fafc;

    border-radius: 10px;

    padding: 18px;
}


.stat-box span {
    display: block;

    font-size: 12px;

    color: #6b7280;

    margin-bottom: 7px;
}


.stat-box strong {
    font-size: 24px;

    font-weight: 700;
}


/* =========================================
   OVERVIEW
========================================= */

.overview-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 0;
}


.overview-item > i {
    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: #f1f5f9;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #0d6efd;
}


.overview-item strong {
    display: block;

    font-size: 13px;
}


.overview-item span {
    display: block;

    color: #6b7280;

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 991.98px) {

    .sidebar {
        transform: translateX(-100%);

        transition:
            transform 0.25s ease;
    }


    .sidebar.show {
        transform: translateX(0);
    }


    .main-content {
        margin-left: 0;
    }


    .topbar {
        padding: 0 15px;
    }


    .content-area {
        padding: 15px;
    }

}


@media (max-width: 575.98px) {

    .topbar-title {
        font-size: 15px;
    }


    .content-area {
        padding: 12px;
    }


    .dashboard-card {
        padding: 16px;
    }


    .dashboard-card h3 {
        font-size: 22px;
    }

}

/* =========================================
   PAGE HEADER
========================================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================
   UPLOAD
========================================= */

.upload-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f1ff;

    color: #0d6efd;

    font-size: 32px;
}


@media (max-width: 767.98px) {

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =========================================
   ASSIGNMENT
========================================= */

.assignment-available {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px;

    border-radius: 12px;

    background: #f0f7ff;

    border: 1px solid #dcecff;
}


.assignment-available small {
    display: block;

    color: #6b7280;

    font-size: 11px;

    margin-bottom: 3px;
}


.assignment-available strong {
    display: block;

    font-size: 24px;

    color: #0d6efd;
}


.assignment-available > i {
    font-size: 28px;

    color: #0d6efd;

    opacity: 0.7;
}

/* =========================================
   USER TABLE
========================================= */

.user-avatar-table {
    width: 38px;
    height: 38px;

    min-width: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f1ff;

    color: #0d6efd;

    font-size: 14px;

    font-weight: 700;
}