/* =========================================================
   FORM KELAS CSS
   SD INPRES LXXVI WAIRKLAU
   TAMBAH KELAS & EDIT KELAS
   ========================================================= */


/* =========================================================
   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;

    margin: 0;
    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);
}


/* JUDUL NAVBAR */

.navbar-brand {
    color: #ffffff !important;

    font-size: 20px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}

.navbar-brand i {
    margin-right: 8px;
}


/* USER NAVBAR */

.user-info {
    color: #ffffff;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}

.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;
    min-height: 0 !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 .3s ease;
}


/* =========================================================
   SIDEBAR HEADER
   ========================================================= */

.sidebar-header {
    text-align: center;
}


/* LOGO */

.sidebar .logo {
    width: 85px;
    height: 85px;

    object-fit: contain;

    display: block;

    margin: 0 auto 12px;
}


/* JUDUL SIDEBAR */

.sidebar h5 {
    color: #ffffff;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 600;

    text-align: center;

    margin-bottom: 5px;
}


/* SUBJUDUL */

.sidebar small {
    display: block;

    color: #d7deeb;

    text-align: center;

    font-size: 12px;
}


/* GARIS */

.sidebar hr {
    border-color: rgba(255, 255, 255, .08);

    margin: 28px 0 15px;
}


/* =========================================================
   SIDEBAR MENU
   ========================================================= */

.sidebar .nav {
    width: 100%;
}


/* LINK */

.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;
}


/* ICON */

.sidebar .nav-link i {
    width: 18px;

    text-align: center;

    font-size: 15px;
}


/* HOVER */

.sidebar .nav-link:hover {
    background: #2563eb;

    color: #ffffff;

    transform: translateX(3px);
}


/* ACTIVE */

.sidebar .nav-link.active {
    background: #2563eb;

    color: #ffffff;

    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;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: space-between;

    transition: .25s;
}


.menu-btn span {
    display: flex;

    align-items: center;

    gap: 10px;
}


.menu-btn:hover {
    background: #243b63;

    color: #ffffff;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.logout-wrapper {
    margin-top: 25px;

    padding-bottom: 15px;
}

.logout-wrapper .btn {
    width: 100%;

    border-radius: 12px;

    padding: 11px;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    margin-left: 230px !important;

    width: calc(100% - 230px) !important;

    min-height: 100vh;

    padding:
        80px
        25px
        30px
        25px !important;

    transition: all .3s ease;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb-area {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 10px;

    font-size: 14px;

    color: #64748b;
}


.breadcrumb-area a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 500;
}


.breadcrumb-area a:hover {
    text-decoration: underline;
}


.breadcrumb-area i {
    font-size: 10px;

    color: #94a3b8;
}


.breadcrumb-area span {
    color: #64748b;
}


/* =========================================================
   BOOTSTRAP BREADCRUMB
   ========================================================= */

.breadcrumb {
    background: transparent;

    padding: 0;

    margin-bottom: 10px;

    font-size: 14px;
}


.breadcrumb-item a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 500;
}


.breadcrumb-item.active {
    color: #64748b;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: flex-start;

    margin-bottom: 22px;

    width: 100%;
}


/* JUDUL HALAMAN */

.page-title {
    color: #172033;

    font-size: 30px;

    line-height: 1.25;

    font-weight: 700;

    margin: 0 0 5px 0;
}


.page-title i {
    color: #2563eb;

    margin-right: 8px;
}


/* DESKRIPSI
   AKAN SELALU BERADA TEPAT
   DI BAWAH JUDUL */

.page-description {
    color: #64748b;

    font-size: 14px;

    line-height: 1.5;

    margin: 0;

    display: block;

    width: 100%;
}


/* Jika HTML menggunakan h2 langsung */

.page-header h2 {
    color: #172033;

    font-size: 30px;

    line-height: 1.25;

    font-weight: 700;

    margin: 0 0 5px 0;
}


.page-header h2 i {
    color: #2563eb;

    margin-right: 8px;
}


.page-header p {
    color: #64748b;

    font-size: 14px;

    line-height: 1.5;

    margin: 0;

    width: 100%;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.form-card {
    background: #ffffff;

    border: none;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, .07);

    margin-bottom: 25px;
}


/* =========================================================
   FORM CARD HEADER
   ========================================================= */

.form-card-header {
    background: #ffffff;

    padding: 19px 22px;

    border-bottom: 1px solid #edf2f7;

    display: flex;

    align-items: center;
}


.form-card-header > div {
    display: flex;

    align-items: center;

    gap: 8px;
}


.form-card-header i {
    color: #2563eb;

    font-size: 18px;
}


.form-card-title {
    color: #2563eb;

    font-size: 19px;

    font-weight: 600;

    margin: 0;
}


/* Jika menggunakan span */

.form-card-header span {
    color: #2563eb;

    font-size: 19px;

    font-weight: 600;
}


/* =========================================================
   FORM CARD BODY
   ========================================================= */

.form-card-body {
    padding: 28px 22px;
}


/* =========================================================
   LABEL
   ========================================================= */

.form-card .form-label,
.form-label {
    color: #172033;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 9px;
}


.required {
    color: #ef4444;

    margin-left: 2px;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.form-card .input-group {
    width: 100%;
}


.form-card .input-group-text {
    min-width: 42px;

    justify-content: center;

    background: #f8fbff;

    border: 1px solid #dbe4f0;

    color: #2563eb;

    font-size: 16px;
}


/* =========================================================
   INPUT & SELECT
   ========================================================= */

.form-card .form-control,
.form-card .form-select {
    min-height: 46px;

    border: 1px solid #dbe4f0;

    border-radius: 0 10px 10px 0;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    color: #374151;

    box-shadow: none;
}


.form-card .form-select {
    cursor: pointer;
}


/* INPUT */

.form-card .input-group > .form-control {
    border-radius: 0 10px 10px 0;
}


/* SELECT */

.form-card .input-group > .form-select {
    border-radius: 0 10px 10px 0;
}


/* SATUAN SISWA */

.form-card .input-group > .input-group-text:last-child {
    min-width: 55px;

    border-radius: 0 10px 10px 0;

    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 .15rem rgba(37, 99, 235, .10);
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.form-card textarea.form-control {
    min-height: 105px;

    resize: vertical;

    border-radius: 0 10px 10px 0;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.form-card .form-text,
.form-help {
    color: #94a3b8;

    font-size: 12px;

    margin-top: 6px;
}


/* =========================================================
   ALERT
   ========================================================= */

.alert {
    border-radius: 11px;

    font-size: 13px;

    margin-bottom: 25px;
}


.alert i {
    margin-right: 6px;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.form-divider {
    margin: 28px 0 22px;

    border: 0;

    border-top: 1px solid #edf2f7;

    opacity: 1;
}


/* =========================================================
   FORM CARD FOOTER
   ========================================================= */

.form-card-footer {
    padding: 18px 22px;

    border-top: 1px solid #edf2f7;

    background: #ffffff;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 10px;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;
}


.form-actions .btn {
    min-width: 145px;

    min-height: 43px;

    border-radius: 10px;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 600;
}


.form-actions .btn i {
    margin-right: 5px;
}


/* =========================================================
   BUTTON FORM
   ========================================================= */

.btn-form {
    min-height: 46px;

    padding: 0 22px;

    border-radius: 10px;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 600;

    transition: all .25s ease;
}


.btn-form:hover {
    transform: translateY(-2px);
}


/* =========================================================
   BUTTON PRIMARY
   ========================================================= */

.btn-primary {
    background: #2563eb;

    border-color: #2563eb;
}


.btn-primary:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;
}


/* =========================================================
   BUTTON SUCCESS
   ========================================================= */

.btn-success {
    background: #22c55e;

    border-color: #22c55e;

    color: #ffffff;
}


.btn-success:hover {
    background: #16a34a;

    border-color: #16a34a;

    color: #ffffff;

    box-shadow:
        0 6px 15px rgba(34, 197, 94, .20);
}


/* =========================================================
   BUTTON SECONDARY
   ========================================================= */

.btn-secondary {
    background: #64748b;

    border-color: #64748b;

    color: #ffffff;
}


.btn-secondary:hover {
    background: #475569;

    border-color: #475569;

    color: #ffffff;
}


/* =========================================================
   PAGE FOOTER
   ========================================================= */

/*
   Footer dibuat penuh mengikuti area konten,
   bukan mengikuti lebar sidebar.
*/

.page-footer {
    width: 100%;

    margin-top: 28px;

    padding: 18px 8px 20px;

    border-top: 1px solid #cfd8e3;

    color: #64748b;

    font-size: 12px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;
}


/* Semua isi footer berada di tengah */

.page-footer div,
.page-footer span,
.page-footer p {
    width: 100%;

    text-align: center;

    margin: 0;
}


/* Nama aplikasi */

.page-footer strong {
    color: #64748b;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   FOOTER JIKA MENGGUNAKAN CLASS .footer
   ========================================================= */

.footer {
    width: 100%;

    margin-top: 28px;

    padding: 18px 8px 20px;

    font-family: 'Poppins', sans-serif;

    text-align: center;
}


.footer-line {
    width: 100%;

    height: 1px;

    background: #cbd5e1;

    margin-bottom: 14px;
}


.footer-center {
    width: 100%;

    text-align: center;

    color: #64748b;

    font-size: 12px;

    line-height: 1.6;
}


.footer-center strong {
    color: #64748b;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   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
            20px !important;
    }

    .form-card-body {
        padding: 25px 20px;
    }
}


/* =========================================================
   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
            15px !important;
    }

    .breadcrumb,
    .breadcrumb-area {
        font-size: 12px;
    }

    .page-header {
        margin-bottom: 18px;
    }

    .page-title,
    .page-header h2 {
        font-size: 25px;
    }

    .page-description,
    .page-header p {
        font-size: 13px;
    }

    .form-card {
        border-radius: 15px;
    }

    .form-card-header {
        padding: 17px 18px;
    }

    .form-card-title,
    .form-card-header span {
        font-size: 17px;
    }

    .form-card-body {
        padding: 22px 17px;
    }

    .form-card .form-label,
    .form-label {
        font-size: 13px;
    }

    .form-card .form-control,
    .form-card .form-select {
        font-size: 13px;

        min-height: 45px;
    }

    .form-card-footer {
        flex-direction: column-reverse;

        align-items: stretch;

        padding: 16px 17px;
    }

    .form-card-footer .btn-form {
        width: 100%;
    }

    .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .page-footer {
        margin-top: 25px;

        padding:
            17px
            10px
            20px;

        font-size: 11px;
    }

    .page-footer strong {
        font-size: 12px;
    }

    .footer-center {
        font-size: 11px;
    }

    .footer-center strong {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .sidebar {
        width: 230px !important;
    }

    .navbar-brand {
        font-size: 15px;
    }

    .user-info {
        font-size: 11px;
    }

    .main-content {
        padding:
            75px
            12px
            20px !important;
    }

    .breadcrumb-area {
        font-size: 11px;

        gap: 6px;
    }

    .page-title,
    .page-header h2 {
        font-size: 23px;
    }

    .page-description,
    .page-header p {
        font-size: 12px;
    }

    .form-card {
        border-radius: 14px;
    }

    .form-card-header {
        padding: 15px;
    }

    .form-card-title,
    .form-card-header span {
        font-size: 16px;
    }

    .form-card-body {
        padding: 20px 14px;
    }

    .form-card .form-label,
    .form-label {
        font-size: 13px;
    }

    .form-card .form-control,
    .form-card .form-select {
        font-size: 13px;
    }

    .form-card-footer {
        padding: 15px 14px;
    }

    .page-footer {
        font-size: 10px;
    }

    .page-footer strong {
        font-size: 11px;
    }
}