/* =========================================================
   GURU WALI KELAS
   CSS FINAL
   SD INPRES LXXVI WAIRKLAU
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Poppins", sans-serif;

    background: #f5f7fb;

    color: #1f2937;

    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    min-height: 70px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    box-shadow:
        0 4px 15px rgba(37, 99, 235, .18);

    padding: 0 24px;

    position: sticky;

    top: 0;

    z-index: 1050;
}


.navbar-brand {
    font-size: 20px;

    font-weight: 600;

    color: #fff !important;

    display: flex;

    align-items: center;

    gap: 10px;
}


.navbar-brand i {
    font-size: 25px;
}


.user-info {
    color: #fff;

    font-size: 14px;

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 8px;

    background: rgba(255,255,255,.12);

    padding: 9px 16px;

    border-radius: 30px;
}


.user-info i {
    font-size: 20px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    background: #16213e;

    min-height: calc(100vh - 70px);

    padding: 25px 16px;

    color: #fff;

    display: flex;

    flex-direction: column;

    position: sticky;

    top: 70px;

    height: calc(100vh - 70px);

    overflow-y: auto;
}


/* scrollbar */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);

    border-radius: 10px;
}


/* =========================================================
   LOGO SIDEBAR
========================================================= */

.sidebar .logo {
    width: 85px;

    height: 85px;

    object-fit: contain;

    border-radius: 50%;

    background: #fff;

    padding: 6px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.15);
}


.sidebar h5 {
    font-size: 15px;

    font-weight: 600;

    line-height: 1.5;

    margin-bottom: 4px;
}


.sidebar small {
    color: rgba(255,255,255,.65);

    font-size: 11px;
}


/* =========================================================
   SIDEBAR NAV LINK
========================================================= */

.sidebar .nav-link {
    color: rgba(255,255,255,.75);

    padding: 11px 14px;

    margin-bottom: 4px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 500;

    transition: all .25s ease;

    display: flex;

    align-items: center;
}


.sidebar .nav-link i {
    font-size: 17px;

    min-width: 22px;
}


.sidebar .nav-link:hover {
    color: #fff;

    background: rgba(255,255,255,.08);

    transform: translateX(3px);
}


/* =========================================================
   ACTIVE MENU
========================================================= */

.sidebar .nav-link.active {
    color: #fff;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    box-shadow:
        0 5px 15px rgba(37,99,235,.25);
}


.sidebar .nav-link.active i {
    color: #fff;
}


/* =========================================================
   MENU BUTTON
========================================================= */

.menu-btn {
    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: rgba(255,255,255,.75);

    text-align: left;

    padding: 11px 14px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 500;

    transition: all .25s ease;
}


.menu-btn:hover {
    background: rgba(255,255,255,.08);

    color: #fff;
}


.menu-btn i {
    font-size: 16px;
}


.menu-btn .float-end {
    transition: transform .3s ease;
}


/* =========================================================
   CONTENT
========================================================= */

.content {
    min-height: calc(100vh - 70px);

    padding: 30px;

    background: #f5f7fb;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.page-title {
    font-size: 27px;

    font-weight: 700;

    color: #1e293b;

    margin-bottom: 5px;
}


.page-title i {
    margin-right: 8px;
}


.page-subtitle {
    color: #64748b;

    font-size: 13px;

    margin-bottom: 0;
}


.page-subtitle i {
    font-size: 10px;

    margin: 0 5px;

    color: #94a3b8;
}


/* =========================================================
   DATE BUTTON
========================================================= */

.content > .d-flex > .btn {
    font-size: 13px;

    font-weight: 500;

    box-shadow:
        0 5px 12px rgba(37,99,235,.15);
}


/* =========================================================
   WELCOME CARD
========================================================= */

.welcome-card {
    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #fff;

    border-radius: 18px;

    padding: 28px 30px;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(37,99,235,.18);
}


.welcome-card::before {
    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border-radius: 50%;

    background: rgba(255,255,255,.05);

    top: -70px;

    right: 130px;
}


.welcome-card::after {
    content: "";

    position: absolute;

    width: 250px;

    height: 250px;

    border-radius: 50%;

    background: rgba(255,255,255,.04);

    bottom: -150px;

    right: -50px;
}


.welcome-card h2 {
    font-size: 22px;

    margin-bottom: 8px;

    position: relative;

    z-index: 2;
}


.welcome-card p {
    font-size: 13px;

    color: rgba(255,255,255,.85);

    position: relative;

    z-index: 2;
}


.welcome-card .col-md-4 {
    position: relative;

    z-index: 2;
}


/* =========================================================
   STATISTIC CARD
========================================================= */

.stat-card {
    background: #fff;

    border: none;

    border-radius: 16px;

    padding: 22px 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 125px;

    box-shadow:
        0 5px 18px rgba(15,23,42,.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.stat-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(15,23,42,.10);
}


.stats-title {
    color: #64748b;

    font-size: 13px;

    font-weight: 500;

    margin-bottom: 6px;
}


.stats-number {
    color: #1e293b;

    font-size: 30px;

    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   ICON CIRCLE
========================================================= */

.icon-circle {
    width: 55px;

    height: 55px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 24px;

    flex-shrink: 0;
}


.bg-blue {
    background: linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    ) !important;
}


.bg-success {
    background: linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    ) !important;
}


.bg-danger {
    background: linear-gradient(
        135deg,
        #ef4444,
        #dc2626
    ) !important;
}


/* =========================================================
   TOOLBAR BOX
========================================================= */

.box {
    background: #fff;

    border-radius: 16px;

    padding: 20px;

    box-shadow:
        0 5px 18px rgba(15,23,42,.06);
}


.box .btn {
    border-radius: 10px;

    font-size: 13px;

    font-weight: 500;

    padding: 10px 15px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    height: 43px;

    border: 1px solid #e2e8f0;

    border-radius: 10px 0 0 10px;

    font-size: 13px;

    color: #334155;

    padding-left: 15px;
}


.search-box:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.10);
}


.input-group .btn {
    height: 43px;
}


/* =========================================================
   TABLE CARD
========================================================= */

.table-card {
    border: none !important;

    border-radius: 16px !important;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(15,23,42,.07);
}


.table-card .card-header {
    background: #fff;

    border-bottom: 1px solid #eef2f7;

    padding: 18px 22px;
}


.table-card .card-header h5 {
    font-size: 16px;

    font-weight: 600;

    color: #1e293b;
}


.table-card .card-header h5 i {
    color: #2563eb;

    margin-right: 7px;
}


.table-card .badge {
    font-size: 11px;

    padding: 7px 12px;
}


/* =========================================================
   TABLE
========================================================= */

.table-card .card-body {
    padding: 0;

    background: #fff;
}


.table {
    margin-bottom: 0;

    font-size: 12px;

    color: #334155;
}


.table thead th {
    background: #f8fafc;

    color: #475569;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .3px;

    padding: 15px 12px;

    border-bottom: 1px solid #e2e8f0;

    white-space: nowrap;
}


.table tbody td {
    padding: 13px 12px;

    border-bottom: 1px solid #f1f5f9;

    vertical-align: middle;

    white-space: nowrap;
}


.table tbody tr {
    transition: background .2s ease;
}


.table-hover tbody tr:hover {
    background: #f8fbff;
}


/* =========================================================
   NAMA GURU
========================================================= */

.table tbody td .fw-bold {
    font-size: 12px;

    margin-bottom: 2px;
}


.table tbody td small {
    font-size: 10px;
}


/* =========================================================
   BADGE
========================================================= */

.table .badge {
    font-size: 10px;

    font-weight: 500;

    padding: 6px 9px;

    border-radius: 20px;
}


/* =========================================================
   KELAS BADGE
========================================================= */

.table .bg-success {
    background: #dcfce7 !important;

    color: #15803d !important;
}


/* =========================================================
   JENIS KELAMIN
========================================================= */

.table .bg-primary {
    background: #dbeafe !important;

    color: #1d4ed8 !important;
}


.table .bg-danger {
    background: #fee2e2 !important;

    color: #dc2626 !important;
}


.table .bg-secondary {
    background: #f1f5f9 !important;

    color: #64748b !important;
}


/* =========================================================
   USERNAME
========================================================= */

.table .bg-info {
    background: #e0f2fe !important;

    color: #0369a1 !important;
}


/* =========================================================
   ACTION BUTTON
========================================================= */

.table td .btn {
    width: 34px;

    height: 34px;

    padding: 0;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: none;

    transition: all .2s ease;
}


.table td .btn i {
    font-size: 14px;
}


/* EDIT */

.table td .btn-warning {
    background: #fef3c7;

    color: #d97706;
}


.table td .btn-warning:hover {
    background: #f59e0b;

    color: #fff;

    transform: translateY(-2px);
}


/* DELETE */

.table td .btn-danger {
    background: #fee2e2;

    color: #dc2626;
}


.table td .btn-danger:hover {
    background: #dc2626;

    color: #fff;

    transform: translateY(-2px);
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    gap: 4px;
}


.pagination .page-item .page-link {
    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 8px;

    color: #475569;

    background: #f1f5f9;

    font-size: 12px;

    font-weight: 500;

    transition: all .2s ease;
}


.pagination .page-item .page-link:hover {
    background: #dbeafe;

    color: #2563eb;
}


.pagination .page-item.active .page-link {
    background: #2563eb;

    color: #fff;

    box-shadow:
        0 4px 10px rgba(37,99,235,.20);
}


.pagination .page-item.disabled .page-link {
    opacity: .45;

    cursor: not-allowed;
}


/* =========================================================
   DATA INFORMATION
========================================================= */

.table-card .text-muted {
    font-size: 12px;

    color: #64748b !important;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 10px 5px 20px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}


.footer hr {
    border: 0;

    border-top: 1px solid #e2e8f0;

    margin-bottom: 18px;
}


.footer p {
    line-height: 1.7;

    margin: 0;
}


.footer strong {
    color: #64748b;

    font-weight: 600;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991.98px) {

    .sidebar {
        position: relative;

        top: 0;

        height: auto;

        min-height: auto;
    }


    .content {
        padding: 25px 20px;
    }


    .page-title {
        font-size: 24px;
    }


    .welcome-card {
        padding: 25px;
    }


    .welcome-card .col-md-4 {
        display: none;
    }


    .stat-card {
        min-height: 110px;
    }


    .table-card {
        overflow-x: auto;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .navbar {
        padding: 0 15px;

        min-height: 60px;
    }


    .navbar-brand {
        font-size: 16px;
    }


    .navbar-brand i {
        font-size: 20px;
    }


    .user-info {
        font-size: 11px;

        padding: 7px 11px;
    }


    .user-info i {
        font-size: 17px;
    }


    .content {
        padding: 20px 15px;
    }


    .page-title {
        font-size: 21px;
    }


    .page-subtitle {
        font-size: 11px;
    }


    .content > .d-flex {
        align-items: flex-start !important;

        flex-direction: column;

        gap: 12px;
    }


    .content > .d-flex > .btn {
        align-self: flex-start;
    }


    .welcome-card {
        padding: 22px;

        border-radius: 15px;
    }


    .welcome-card h2 {
        font-size: 18px;
    }


    .welcome-card p {
        font-size: 11px;
    }


    .stat-card {
        padding: 18px;

        min-height: 100px;
    }


    .stats-title {
        font-size: 11px;
    }


    .stats-number {
        font-size: 25px;
    }


    .icon-circle {
        width: 48px;

        height: 48px;

        font-size: 20px;

        border-radius: 13px;
    }


    .box {
        padding: 15px;
    }


    .box .row > div {
        width: 100%;
    }


    .search-box {
        font-size: 12px;
    }


    .table-card .card-header {
        padding: 15px;
    }


    .table-card .card-header h5 {
        font-size: 14px;
    }


    .table {
        font-size: 11px;
    }


    .table thead th {
        font-size: 10px;

        padding: 12px 10px;
    }


    .table tbody td {
        padding: 11px 10px;
    }


    .pagination .page-item .page-link {
        width: 30px;

        height: 30px;

        font-size: 11px;
    }


    .footer {
        font-size: 10px;
    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .navbar-brand {
        font-size: 14px;
    }


    .user-info {
        padding: 6px 8px;
    }


    .user-info i {
        font-size: 15px;
    }


    .content {
        padding: 15px 10px;
    }


    .page-title {
        font-size: 19px;
    }


    .welcome-card h2 {
        font-size: 16px;
    }


    .stats-number {
        font-size: 23px;
    }


    .box .btn {
        font-size: 11px;
    }


    .table-card .card-header {
        flex-direction: column;

        align-items: flex-start !important;

        gap: 8px;
    }

}