/* =========================================================
   DATA KELAS CSS - FINAL
   SD INPRES LXXVI WAIRKLAU

   Tampilan disesuaikan dengan DATA PENGGUNA
   ========================================================= */


/* =========================================================
   GOOGLE FONT
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #eef3fb;
    color: #1f2937;
    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 60px;
    min-height: 60px;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #1d4ed8
        ) !important;

    border-radius: 0 !important;

    z-index: 2000 !important;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .15);
}

.navbar-brand {
    color: #fff !important;

    font-size: 20px;
    font-weight: 600;

    text-decoration: none;
}

.navbar-brand:hover {
    color: #fff !important;
}

.navbar-brand i {
    margin-right: 5px;
}

.user-info {
    color: #fff;

    font-size: 14px;
    font-weight: 500;
}

.user-info i {
    margin-right: 5px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed !important;

    top: 60px !important;
    left: 0 !important;
    bottom: 0 !important;

    width: 230px !important;
    height: calc(100vh - 60px) !important;

    padding: 20px 18px !important;

    overflow-y: auto;
    overflow-x: hidden;

    background: #16213e !important;

    z-index: 1500 !important;

    box-shadow:
        3px 0 15px rgba(0, 0, 0, .08);

    transition: all .25s ease;
}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.sidebar-logo {
    text-align: center;
}

.sidebar .logo {
    width: 85px;
    height: 85px;

    object-fit: contain;

    display: block;

    margin: 0 auto 12px;
}

.sidebar h5 {
    color: #fff;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 600;

    text-align: center;

    margin-bottom: 5px;
}

.sidebar small {
    color: #d7deeb;

    display: block;

    text-align: center;

    font-size: 12px;
}

.sidebar hr {
    border-color: rgba(255,255,255,.08);

    margin: 28px 0 15px;
}


/* =========================================================
   SIDEBAR MENU
   ========================================================= */

.sidebar .nav-link {
    color: #e5eaf2;

    padding: 11px 14px;

    border-radius: 12px;

    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 500;

    display: flex;
    align-items: center;

    gap: 10px;

    text-decoration: none;

    transition: all .25s ease;
}

.sidebar .nav-link i {
    width: 18px;

    min-width: 18px;

    text-align: center;

    font-size: 15px;
}

.sidebar .nav-link:hover {
    background: #2563eb;

    color: #fff;

    transform: translateX(3px);
}

.sidebar .nav-link.active {
    background: #2563eb;

    color: #fff;

    box-shadow:
        0 5px 15px rgba(37,99,235,.25);
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu-btn {
    width: 100%;

    border: none;

    background: transparent;

    color: #e5eaf2;

    padding: 11px 14px;

    border-radius: 12px;

    margin-bottom: 6px;

    text-align: left;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    transition: all .25s ease;
}

.menu-btn span {
    display: flex;

    align-items: center;

    gap: 10px;
}

.menu-btn:hover {
    background: #243b63;

    color: #fff;
}


/* =========================================================
   SIDEBAR LOGOUT
   ========================================================= */

.sidebar-logout {
    margin-top: 25px;

    padding-bottom: 20px;
}

.sidebar-logout .btn {
    width: 100%;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 500;

    padding: 10px;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    margin-left: 230px !important;

    width: calc(100% - 230px) !important;

    min-height: 100vh;

    padding:
        82px
        25px
        25px
        25px !important;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    position: relative;

    width: 100%;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 22px;
}

.page-header-left {
    min-width: 0;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-header h2 {
    color: #172033;

    font-size: 28px;

    line-height: 1.25;

    font-weight: 700;

    margin: 0 0 5px;
}

.page-header h2 i {
    color: #1266f1;

    margin-right: 7px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb-area {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.5;
}

.breadcrumb-area a {
    color: #64748b;

    text-decoration: none;
}

.breadcrumb-area a:hover {
    color: #1266f1;
}

.breadcrumb-area i {
    color: #94a3b8;

    font-size: 9px;
}

.breadcrumb-area span {
    color: #64748b;
}


/* =========================================================
   PAGE DATE
   ========================================================= */

.page-date {
    flex-shrink: 0;

    background: #1266f1;

    color: #fff;

    padding: 7px 15px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

    margin-top: 6px;

    box-shadow:
        0 5px 12px rgba(37,99,235,.18);
}

.page-date i {
    margin-right: 5px;
}


/* =========================================================
   WELCOME CARD
   ========================================================= */

.welcome-card {
    position: relative;

    overflow: hidden;

    border-radius: 20px;

    padding: 35px 27px;

    margin-bottom: 22px;

    background:
        linear-gradient(
            120deg,
            #2563eb 0%,
            #334ee8 55%,
            #5146e5 100%
        );

    color: #fff;

    box-shadow:
        0 12px 30px rgba(37,99,235,.20);
}

.welcome-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    right: -45px;
    top: -60px;

    background: rgba(255,255,255,.08);
}

.welcome-card::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    right: 45px;
    bottom: -80px;

    background: rgba(255,255,255,.06);
}

.welcome-card h2 {
    position: relative;

    z-index: 2;

    font-size: 27px;

    font-weight: 700;

    margin: 0 0 7px;
}

.welcome-card p {
    position: relative;

    z-index: 2;

    max-width: 720px;

    font-size: 14px;

    line-height: 1.55;

    color: rgba(255,255,255,.95);

    margin: 0;
}

.welcome-card .welcome-icon {
    position: absolute;

    right: 28px;
    bottom: 20px;

    font-size: 70px;

    color: rgba(255,255,255,.18);

    z-index: 1;
}


/* =========================================================
   STATISTIC CARD
   ========================================================= */

.stat-card {
    background: #fff;

    border: none;

    border-radius: 17px;

    min-height: 108px;

    padding: 18px 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow:
        0 7px 20px rgba(0,0,0,.07);

    transition: all .3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 13px 28px rgba(0,0,0,.10);
}

.stat-card small {
    color: #64748b;

    font-size: 13px;

    font-weight: 400;
}

.stat-card h2 {
    color: #111827;

    font-size: 28px;

    font-weight: 700;

    margin-top: 6px;

    margin-bottom: 0;
}


/* =========================================================
   STATISTIC ICON
   ========================================================= */

.stat-icon {
    width: 50px;
    height: 50px;

    min-width: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 20px;

    box-shadow:
        0 7px 15px rgba(0,0,0,.13);
}

.bg-primary {
    background: #2563eb !important;
}

.bg-success {
    background: #16a34a !important;
}

.bg-warning {
    background: #f59e0b !important;
}

.bg-danger {
    background: #ef4444 !important;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.data-toolbar {
    background: #fff;

    border-radius: 18px;

    padding: 18px 22px;

    margin-top: 22px;

    margin-bottom: 22px;

    box-shadow:
        0 7px 20px rgba(0,0,0,.07);
}


/* =========================================================
   BUTTON TAMBAH
   ========================================================= */

.btn-tambah {
    width: 100%;

    height: 43px;

    border-radius: 9px;

    background: #198754;

    border: none;

    color: #fff;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 500;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    transition: all .25s ease;
}

.btn-tambah:hover {
    background: #157347;

    color: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(25,135,84,.20);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    width: 100%;

    display: flex;
}

.search-box .form-control {
    height: 43px;

    border: 1px solid #dbe4f0;

    border-right: none;

    border-radius: 10px 0 0 10px;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    padding-left: 15px;

    box-shadow: none;
}

.search-box .form-control:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 .15rem rgba(37,99,235,.10);
}

.search-box .btn {
    height: 43px;

    border: none;

    border-radius: 0 10px 10px 0;

    background: #1266f1;

    color: #fff;

    padding: 0 17px;

    font-size: 13px;

    font-weight: 500;
}

.search-box .btn:hover {
    background: #0d5ddd;

    color: #fff;
}


/* =========================================================
   DATA CARD
   ========================================================= */

.data-card {
    background: #fff;

    border: none;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 7px 20px rgba(0,0,0,.07);

    margin-bottom: 25px;
}


/* =========================================================
   DATA CARD HEADER
   ========================================================= */

.data-card-header {
    background: #fff;

    padding: 18px 22px;

    border-bottom: 1px solid #edf2f7;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.data-card-header h5 {
    color: #111827;

    font-size: 18px;

    font-weight: 500;

    margin: 0;
}

.data-card-header h5 i {
    color: #1266f1;

    margin-right: 6px;
}

.total-badge {
    background: #1266f1;

    color: #fff;

    border-radius: 20px;

    padding: 6px 13px;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-responsive {
    width: 100%;

    overflow-x: auto;
}

.table {
    width: 100%;

    margin-bottom: 0;

    vertical-align: middle;

    font-size: 13px;
}

.table thead th {
    background: #d5e4fa;

    color: #111827;

    border: none;

    padding: 13px 12px;

    text-align: center;

    vertical-align: middle;

    white-space: nowrap;

    font-size: 12px;

    font-weight: 600;
}

.table tbody td {
    padding: 13px 12px;

    border-color: #edf1f6;

    color: #374151;

    vertical-align: middle;

    font-size: 13px;
}

.table tbody tr {
    transition: all .2s ease;
}

.table tbody tr:hover {
    background: #f7faff;
}


/* =========================================================
   NAMA KELAS
   ========================================================= */

.nama-kelas {
    color: #172033;

    font-weight: 600;
}


/* =========================================================
   TINGKAT BADGE
   ========================================================= */

.tingkat-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 48px;

    padding: 5px 10px;

    background: #eef4ff;

    color: #2563eb;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   BADGE KUOTA
   ========================================================= */

.badge {
    padding: 6px 11px;

    border-radius: 30px;

    font-size: 11px;

    font-weight: 600;
}

.badge-primary {
    background: #2563eb;

    color: #fff;
}

.badge-primary i {
    margin-right: 3px;
}


/* =========================================================
   EMPTY DATA
   ========================================================= */

.empty-data {
    padding: 55px 20px !important;

    text-align: center;

    color: #6b7280;
}

.empty-data img {
    width: 65px;
    height: 65px;

    object-fit: contain;

    opacity: .55;

    margin-bottom: 8px;
}

.empty-data h5 {
    color: #111827;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 5px;
}

.empty-data p {
    color: #94a3b8;

    font-size: 12px;

    margin: 0;
}


/* =========================================================
   BUTTON AKSI
   ========================================================= */

.btn-sm {
    width: 33px;
    height: 33px;

    padding: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    border: none;

    margin: 2px;

    transition: all .2s ease;
}

.btn-sm:hover {
    transform: translateY(-2px);
}


/* =========================================================
   DATA CARD FOOTER
   ========================================================= */

.data-card-footer {
    padding: 14px 22px;

    border-top: 1px solid #edf2f7;

    background: #fff;

    color: #64748b;

    font-size: 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.data-info strong {
    color: #374151;

    font-weight: 600;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    margin: 0;

    gap: 3px;
}

.pagination .page-link {
    border: none;

    border-radius: 8px;

    color: #2563eb;

    background: transparent;

    font-size: 12px;

    padding: 7px 10px;
}

.pagination .page-link:hover {
    background: #2563eb;

    color: #fff;
}

.pagination .page-item.active .page-link {
    background: #2563eb;

    color: #fff;
}


/* =========================================================
   FOOTER UTAMA
   ========================================================= */

.footer {
    width: 100%;

    margin-top: 25px;

    padding:
        0
        10px
        22px;

    color: #64748b;

    text-align: center;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    line-height: 1.7;
}


/* GARIS FOOTER */

.footer-line {
    width: 100%;

    height: 1px;

    background: #cfd8e3;

    margin-bottom: 15px;
}


/* ISI FOOTER */

.footer-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-center strong {
    color: #64748b;

    font-size: 12px;

    font-weight: 600;

    margin-left: 2px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;

    height: 7px;
}

::-webkit-scrollbar-track {
    background: #eef3fb;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 992px) {

    .sidebar {
        margin-left: -230px !important;
    }

    .sidebar.show {
        margin-left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;

        width: 100% !important;

        padding:
            80px
            20px
            25px !important;
    }

    .page-header {
        align-items: flex-start;
    }

    .page-date {
        margin-top: 5px;
    }

    .stat-card {
        margin-bottom: 0;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .navbar {
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 17px;
    }

    .user-info {
        font-size: 12px;
    }

    .main-content {
        padding:
            78px
            15px
            20px !important;
    }

    .page-header {
        flex-direction: column;

        gap: 10px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .breadcrumb-area {
        font-size: 12px;
    }

    .page-date {
        margin-top: 0;

        align-self: flex-start;

        font-size: 12px;
    }

    .welcome-card {
        padding: 28px 22px;

        border-radius: 16px;
    }

    .welcome-card h2 {
        font-size: 22px;
    }

    .welcome-card p {
        font-size: 12px;

        max-width: 85%;
    }

    .welcome-card .welcome-icon {
        font-size: 55px;

        right: 18px;
    }

    .stat-card {
        min-height: 100px;

        padding: 17px;
    }

    .stat-card h2 {
        font-size: 25px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;

        min-width: 48px;

        font-size: 19px;
    }

    .data-toolbar {
        padding: 15px;
    }

    .data-card-header {
        padding: 15px;
    }

    .data-card-footer {
        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 10px;

        text-align: center;
    }

    .data-info {
        text-align: center;
    }

    .footer {
        margin-top: 20px;

        padding-bottom: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .main-content {
        padding:
            75px
            12px
            20px !important;
    }

    .page-header h2 {
        font-size: 22px;
    }

    .breadcrumb-area {
        font-size: 11px;
    }

    .page-date {
        font-size: 11px;

        padding: 6px 12px;
    }

    .welcome-card {
        padding: 23px 18px;
    }

    .welcome-card h2 {
        font-size: 19px;
    }

    .welcome-card p {
        font-size: 11px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h2 {
        font-size: 23px;
    }

    .data-toolbar {
        padding: 13px;
    }

    .btn-tambah {
        margin-bottom: 0;
    }

    .data-card {
        border-radius: 14px;
    }

    .data-card-header {
        padding: 14px;
    }

    .data-card-header h5 {
        font-size: 16px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px 9px;

        font-size: 12px;
    }

    .data-card-footer {
        padding: 13px 14px;
    }

    .footer {
        font-size: 11px;
    }

    .footer-center strong {
        font-size: 11px;
    }
}