/* =========================================================
   PORTAL SISWA SMPN 4 SUMBERJAYA
   RESPONSIVE CSS
   Versi bersih - desktop + tablet + mobile
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #f5f8fd;
    color: #10264f;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    height: 78px;

    background: linear-gradient(
        110deg,
        #075bd7,
        #0a62d9
    );

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    box-shadow: 0 2px 12px rgba(18, 52, 91, .10);
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}

.brand-mini b,
.brand-mini small {
    display: block;
}

.brand-mini b {
    font-size: 15px;
    letter-spacing: .2px;
}

.brand-mini small {
    font-size: 12px;
    opacity: .85;
    margin-top: 2px;
}

.logo-mini,
.logo {
    font-size: 32px;
    line-height: 1;
}

.top-user {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 78px;
    left: 0;
    bottom: 0;

    width: 275px;

    background: #fff;

    padding: 26px 20px;

    border-right: 1px solid #e8edf5;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 900;

    scrollbar-width: thin;
}

.sidebar a {
    display: block;

    width: 100%;

    padding: 12px 14px;
    margin: 4px 0;

    color: #172b52;
    text-decoration: none;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.4;

    transition:
        background .2s ease,
        color .2s ease,
        transform .15s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: #edf4ff;
    color: #075bd7;
}

.sidebar a:hover {
    transform: translateX(2px);
}

.sidebar .group {
    font-size: 12px;
    color: #637494;

    margin: 24px 9px 8px;

    font-weight: 600;
    letter-spacing: .3px;
}

.sidebar .logout {
    margin-top: 28px;

    border: 1px solid #ffd5d5;

    color: #d22;
}

.sidebar .logout:hover {
    background: #fff3f3;
    color: #c00;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content {
    margin-left: 275px;

    width: calc(100% - 275px);

    padding: 105px 38px 40px;

    min-height: 100vh;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    margin-bottom: 10px;
}

.welcome h1 {
    margin: 0 0 6px;

    font-size: 28px;
    line-height: 1.25;
}

.welcome p {
    margin-top: 0;

    color: #53688c;

    font-size: 14px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    margin: 20px 0;

    border-radius: 16px;

    background: linear-gradient(
        110deg,
        #1789e9,
        #56b6ed
    );

    color: #fff;

    padding: 28px 35px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 175px;

    overflow: hidden;
}

.hero > div:first-child {
    min-width: 0;
}

.hero h2 {
    line-height: 1.55;
    margin: 0;
}

.hero p {
    margin-bottom: 0;
}

.quote {
    font-size: 42px;
    line-height: 1;
}

.school-art {
    font-size: 64px;
    line-height: 1;

    flex-shrink: 0;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin: 16px 0;
}

.stats > div,
.panel {
    background: #fff;

    border: 1px solid #edf1f7;

    border-radius: 16px;

    padding: 18px;

    box-shadow: 0 5px 20px rgba(24, 59, 105, .07);
}

.stats span {
    font-size: 25px;
    line-height: 1;
}

.stats small,
.stats em {
    display: block;

    color: #607294;

    font-style: normal;
}

.stats strong {
    font-size: 28px;

    display: block;

    margin: 5px 0;
}


/* =========================================================
   GRID
   ========================================================= */

.grid2 {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 14px;
}


/* =========================================================
   PANEL
   ========================================================= */

.panel {
    min-width: 0;
}

.panel h2 {
    margin: 0 0 14px;

    font-size: 18px;

    line-height: 1.35;
}

.panel h2 a {
    float: right;

    color: #0560df;

    font-size: 14px;

    text-decoration: none;
}


/* =========================================================
   ROW
   ========================================================= */

.row {
    display: flex;

    gap: 18px;

    padding: 12px 0;

    border-bottom: 1px solid #edf1f7;

    min-width: 0;
}

.row:last-child {
    border-bottom: 0;
}

.row b {
    min-width: 105px;

    color: #0a5ed5;

    flex-shrink: 0;
}

.row > div {
    min-width: 0;
}

.row small,
.notice small {
    display: block;

    color: #607294;

    margin-top: 4px;
}


/* =========================================================
   NOTICE
   ========================================================= */

.notice {
    padding: 13px 0;

    border-bottom: 1px solid #edf1f7;

    overflow-wrap: break-word;
}

.notice:last-child {
    border-bottom: 0;
}


/* =========================================================
   QUICK MENU
   ========================================================= */

.quick {
    margin-top: 14px;
}

.quick > div {
    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 8px;
}

.quick a {
    text-align: center;

    padding: 16px;

    border-radius: 12px;

    background: #f7f9fd;

    text-decoration: none;

    color: #17325e;

    font-size: 25px;

    transition:
        background .2s ease,
        transform .15s ease;

    min-width: 0;
}

.quick a:hover {
    background: #edf4ff;

    transform: translateY(-2px);

    color: #075bd7;
}

.quick span {
    display: block;

    font-size: 13px;

    margin-top: 7px;

    line-height: 1.3;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.profile-grid p {
    background: #f7f9fd;

    padding: 14px;

    border-radius: 10px;

    margin: 0;
}

.profile-grid b {
    display: block;

    color: #607294;

    font-size: 12px;

    margin-bottom: 5px;
}


/* =========================================================
   TABLE
   ========================================================= */

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    text-align: left;

    padding: 12px;

    border-bottom: 1px solid #edf1f7;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #eaf3ff,
            #f8fbff
        );

    padding: 20px;
}

.login-card {
    width: min(420px, 92%);

    background: #fff;

    padding: 34px;

    border-radius: 20px;

    box-shadow: 0 20px 50px rgba(27, 77, 148, .09);
}

.brand {
    text-align: center;

    margin-bottom: 25px;
}

.brand h1 {
    font-size: 20px;
}

.brand p {
    color: #687b99;
}

.login-card label {
    display: block;

    margin: 12px 0 6px;

    font-weight: 600;
}

.login-card input {
    width: 100%;

    padding: 12px;

    border: 1px solid #dbe3ef;

    border-radius: 9px;

    outline: none;

    font: inherit;
}

.login-card input:focus {
    border-color: #075bd7;

    box-shadow: 0 0 0 3px rgba(7, 91, 215, .08);
}

.login-card button,
.button {
    margin-top: 18px;

    padding: 12px 18px;

    background: #075bd7;

    color: white;

    border: 0;

    border-radius: 9px;

    text-decoration: none;

    display: inline-block;

    cursor: pointer;
}

.login-card button {
    width: 100%;
}

.alert {
    background: #fff0f0;

    color: #b22;

    padding: 10px;

    border-radius: 8px;

    font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .sidebar {
        width: 235px;
    }

    .content {
        margin-left: 235px;

        width: calc(100% - 235px);

        padding-left: 24px;
        padding-right: 24px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET KECIL
   ========================================================= */

@media (max-width: 900px) {

    .sidebar {
        width: 215px;

        padding-left: 14px;
        padding-right: 14px;
    }

    .content {
        margin-left: 215px;

        width: calc(100% - 215px);

        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        padding: 24px;
    }

    .grid2 {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* -----------------------------------------
       TOPBAR
       ----------------------------------------- */

    .topbar {
        height: 64px;

        padding: 0 14px;

        box-shadow: 0 2px 12px rgba(18, 52, 91, .12);
    }

    .brand-mini {
        gap: 9px;

        min-width: 0;
    }

    .logo-mini,
    .logo {
        font-size: 25px;

        flex-shrink: 0;
    }

    .brand-mini b {
        font-size: 12px;

        white-space: nowrap;
    }

    .brand-mini small {
        font-size: 10px;

        white-space: nowrap;
    }

    .top-user {
        font-size: 11px;

        white-space: nowrap;

        margin-left: 8px;
    }


    /* -----------------------------------------
       SIDEBAR
       ----------------------------------------- */

    .sidebar {
        display: none !important;
    }


    /* -----------------------------------------
       CONTENT
       ----------------------------------------- */

    .content {
        display: block;

        width: 100%;

        margin-left: 0;

        padding: 80px 12px 28px;

        min-height: 100vh;
    }


    /* -----------------------------------------
       WELCOME
       ----------------------------------------- */

    .welcome {
        margin-bottom: 8px;
    }

    .welcome h1 {
        font-size: 21px;

        line-height: 1.3;

        margin: 0 0 5px;
    }

    .welcome p {
        font-size: 12px;

        line-height: 1.5;

        margin: 0 0 10px;
    }


    /* -----------------------------------------
       HERO
       ----------------------------------------- */

    .hero {
        width: 100%;

        margin: 12px 0;

        min-height: 120px;

        padding: 18px;

        border-radius: 13px;

        display: flex;

        gap: 10px;
    }

    .hero h2 {
        font-size: 17px;

        line-height: 1.4;

        margin: 0;
    }

    .quote {
        font-size: 26px;

        margin-bottom: 2px;
    }

    .school-art {
        font-size: 34px;

        margin-left: auto;

        flex-shrink: 0;
    }


    /* -----------------------------------------
       STATISTIK
       ----------------------------------------- */

    .stats {
        width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin: 10px 0;
    }

    .stats > div {
        padding: 13px;

        border-radius: 12px;

        min-width: 0;
    }

    .stats span {
        font-size: 20px;
    }

    .stats small,
    .stats em {
        font-size: 10px;

        line-height: 1.4;
    }

    .stats strong {
        font-size: 21px;

        margin: 3px 0;

        line-height: 1.2;
    }


    /* -----------------------------------------
       GRID
       ----------------------------------------- */

    .grid2 {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 10px;
    }


    /* -----------------------------------------
       PANEL
       ----------------------------------------- */

    .panel {
        width: 100%;

        padding: 14px;

        border-radius: 13px;

        overflow: hidden;
    }

    .panel h2 {
        font-size: 16px;

        line-height: 1.35;

        margin: 0 0 10px;
    }

    .panel h2 a {
        font-size: 12px;
    }


    /* -----------------------------------------
       JADWAL
       ----------------------------------------- */

    .row {
        display: flex;

        gap: 10px;

        padding: 10px 0;

        font-size: 13px;

        min-width: 0;
    }

    .row b {
        min-width: 78px;

        font-size: 12px;

        flex-shrink: 0;
    }

    .row > div {
        min-width: 0;
    }

    .row strong {
        font-size: 13px;
    }

    .row small {
        font-size: 11px;

        line-height: 1.35;
    }


    /* -----------------------------------------
       PENGUMUMAN
       ----------------------------------------- */

    .notice {
        padding: 10px 0;

        font-size: 13px;

        line-height: 1.4;
    }

    .notice small {
        font-size: 11px;

        line-height: 1.35;
    }


    /* -----------------------------------------
       QUICK MENU
       ----------------------------------------- */

    .quick {
        width: 100%;

        margin-top: 10px;
    }

    .quick > div {
        width: 100%;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 7px;
    }

    .quick a {
        width: 100%;

        padding: 12px 5px;

        border-radius: 10px;

        font-size: 20px;

        min-width: 0;
    }

    .quick span {
        font-size: 10px;

        margin-top: 5px;

        line-height: 1.25;
    }


    /* -----------------------------------------
       PROFILE
       ----------------------------------------- */

    .profile-grid {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .profile-grid p {
        padding: 11px;

        border-radius: 9px;

        font-size: 13px;
    }

    .profile-grid b {
        font-size: 10px;

        margin-bottom: 3px;
    }


    /* -----------------------------------------
       TABLE
       ----------------------------------------- */

    table {
        display: block;

        width: 100%;

        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 9px 8px;

        font-size: 12px;

        white-space: nowrap;
    }


    /* -----------------------------------------
       LOGIN
       ----------------------------------------- */

    .login-page {
        min-height: 100vh;

        padding: 15px;
    }

    .login-card {
        width: 100%;

        max-width: 390px;

        padding: 24px 20px;

        border-radius: 16px;
    }

    .brand {
        margin-bottom: 20px;
    }

    .brand h1 {
        font-size: 18px;

        margin-bottom: 6px;
    }

    .brand p {
        font-size: 12px;
    }

    .login-card label {
        font-size: 13px;

        margin-top: 10px;
    }

    .login-card input {
        padding: 11px;

        font-size: 14px;
    }

    .login-card button,
    .button {
        padding: 11px 16px;

        font-size: 14px;
    }


    /* -----------------------------------------
       ALERT
       ----------------------------------------- */

    .alert {
        font-size: 12px;

        padding: 9px;
    }
}


/* =========================================================
   HP SANGAT KECIL
   ========================================================= */

@media (max-width: 380px) {

    .topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand-mini b {
        font-size: 11px;
    }

    .brand-mini small {
        font-size: 9px;
    }

    .top-user {
        font-size: 10px;
    }

    .hero {
        padding: 15px;
    }

    .hero h2 {
        font-size: 15px;
    }

    .school-art {
        font-size: 28px;
    }

    .stats > div {
        padding: 11px;
    }

    .stats strong {
        font-size: 19px;
    }

    .quick a {
        padding: 10px 3px;
    }

    .quick span {
        font-size: 9px;
    }
}


/* =========================================================
   TOUCH DEVICE
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .sidebar a,
    .quick a,
    .button,
    button {
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar a:hover,
    .quick a:hover {
        transform: none;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .topbar,
    .sidebar {
        display: none !important;
    }

    .content {
        margin: 0 !important;

        width: 100% !important;

        padding: 0 !important;

        max-width: none !important;
    }
}
/* =========================================================
   MOBILE SIDEBAR / OFF-CANVAS
   Portal Siswa SMPN 4 Sumberjaya
   ========================================================= */


/* =========================================================
   TOMBOL MENU MOBILE
   ========================================================= */

.mobile-menu-btn {
    display: none;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 25px;

    line-height: 1;

    padding: 5px 8px;

    cursor: pointer;
}


/* =========================================================
   HEADER SIDEBAR MOBILE
   ========================================================= */

.sidebar-mobile-header {
    display: none;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    z-index: 1990;
}


/* =========================================================
   BODY SAAT MENU TERBUKA
   ========================================================= */

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {


    /* -----------------------------------------
       TOPBAR
       ----------------------------------------- */

    .topbar {

        height: 64px;

        padding: 0 12px;

        display: flex;

        align-items: center;

        gap: 8px;

    }


    /* -----------------------------------------
       TOMBOL MENU
       ----------------------------------------- */

    .mobile-menu-btn {

        display: flex;

        align-items: center;

        justify-content: center;

        width: 40px;

        height: 40px;

        flex-shrink: 0;

        border-radius: 9px;

    }


    .mobile-menu-btn:active {

        background: rgba(255,255,255,.15);

    }


    /* -----------------------------------------
       BRAND
       ----------------------------------------- */

    .brand-mini {

        flex: 1;

        min-width: 0;

        gap: 8px;

    }


    .logo-mini {

        font-size: 24px;

        flex-shrink: 0;

    }


    .brand-mini b {

        font-size: 11px;

        white-space: nowrap;

    }


    .brand-mini small {

        font-size: 9px;

    }


    .top-user {

        font-size: 10px;

        white-space: nowrap;

        flex-shrink: 0;

    }


    /* -----------------------------------------
       SIDEBAR
       ----------------------------------------- */

    .sidebar {

        display: block !important;

        position: fixed;

        top: 0;

        bottom: 0;

        left: 0;

        width: min(290px, 82vw);

        height: 100vh;

        padding: 18px 15px 25px;

        background: #fff;

        border-right: 1px solid #e5eaf2;

        box-shadow: 8px 0 30px rgba(20, 50, 90, .18);

        overflow-y: auto;

        overflow-x: hidden;

        z-index: 2000;

        transform: translateX(-105%);

        transition: transform .28s ease;

    }


    /* SIDEBAR TERBUKA */

    .sidebar.show {

        transform: translateX(0);

    }


    /* -----------------------------------------
       HEADER SIDEBAR
       ----------------------------------------- */

    .sidebar-mobile-header {

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 10px;

        padding: 5px 4px 20px;

        margin-bottom: 5px;

        border-bottom: 1px solid #edf1f7;

    }


    .sidebar-mobile-header strong {

        display: block;

        color: #12305f;

        font-size: 13px;

        line-height: 1.3;

    }


    .sidebar-mobile-header small {

        display: block;

        color: #71809a;

        font-size: 10px;

        margin-top: 3px;

    }


    /* -----------------------------------------
       TOMBOL TUTUP
       ----------------------------------------- */

    .sidebar-close {

        width: 34px;

        height: 34px;

        border: 0;

        border-radius: 9px;

        background: #f1f5fa;

        color: #40516e;

        font-size: 25px;

        line-height: 1;

        cursor: pointer;

        flex-shrink: 0;

    }


    .sidebar-close:active {

        background: #e5ebf4;

    }


    /* -----------------------------------------
       MENU SIDEBAR
       ----------------------------------------- */

    .sidebar a {

        padding: 11px 12px;

        margin: 3px 0;

        font-size: 13px;

        border-radius: 9px;

    }


    .sidebar .group {

        margin:

            19px

            8px

            7px;

        font-size: 10px;

    }


    .sidebar .logout {

        margin-top: 20px;

    }


    /* -----------------------------------------
       OVERLAY
       ----------------------------------------- */

    .sidebar-overlay {

        display: block;

        opacity: 0;

        visibility: hidden;

        transition:

            opacity .28s ease,

            visibility .28s ease;

    }


    .sidebar-overlay.show {

        opacity: 1;

        visibility: visible;

    }


    /* -----------------------------------------
       CONTENT
       ----------------------------------------- */

    .content {

        width: 100%;

        margin-left: 0 !important;

        padding:

            80px

            12px

            28px;

        min-height: 100vh;

    }

}


/* =========================================================
   HP SANGAT KECIL
   ========================================================= */

@media (max-width: 380px) {

    .mobile-menu-btn {

        width: 36px;

        height: 36px;

        font-size: 22px;

    }


    .topbar {

        padding-left: 8px;

        padding-right: 8px;

    }


    .brand-mini b {

        font-size: 10px;

    }


    .top-user {

        font-size: 9px;

    }


    .sidebar {

        width: 84vw;

    }


    .content {

        padding-left: 10px;

        padding-right: 10px;

    }

}