/* =========================================================
   LIBRARY SMK AMIRUL MU'MININ
   V4 — MODERN ISLAMIC EDUCATION UI
   ========================================================= */

:root {
    --primary: #0F5B4D;
    --primary-dark: #08483D;
    --primary-light: #E8F3F0;

    --secondary: #C8A951;
    --secondary-light: #FBF6E4;

    --background: #F7F8F5;
    --surface: #FFFFFF;

    --text: #263238;
    --muted: #718096;

    --border: #E2E8E6;

    --success: #198754;
    --danger: #DC3545;
    --warning: #C89618;

    --radius: 14px;
    --radius-sm: 9px;

    --shadow:
        0 4px 18px rgba(15, 91, 77, 0.08);

    --shadow-hover:
        0 8px 25px rgba(15, 91, 77, 0.14);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 24px;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    background:
        linear-gradient(
            135deg,
            #f5f8f7 0%,
            #f7f8f9 100%
        );

    color: var(--text);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    margin-top: 0;
    margin-bottom: 14px;
}

small {
    color: var(--muted);
}


/* =========================================================
   LINK
   ========================================================= */

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}


/* =========================================================
   HEADER / BRAND
   ========================================================= */

.header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.header h1 {
    margin-bottom: 5px;
}

.header p {
    color: var(--muted);
}


/* =========================================================
   BADGE
   ========================================================= */

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #e7f6ed;
    color: var(--success);
}

.badge-warning {
    background: var(--secondary-light);
    color: #856404;
}

.badge-danger {
    background: #fdebec;
    color: var(--danger);
}


/* =========================================================
   BUTTON
   ========================================================= */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 17px;

    border: 0;
    border-radius: var(--radius-sm);

    background: var(--primary);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 81, 69, 0.18);
}

button:active,
.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #eef2f3;
    color: var(--text);
}

.btn-secondary:hover {
    background: #dfe5e7;
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
}

.btn-warning {
    background: var(--warning);
}


/* =========================================================
   FORM
   ========================================================= */

form {
    margin-bottom: 20px;
}

label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

input,
select,
textarea {
    width: 100%;
    max-width: 500px;

    padding: 11px 13px;

    margin-top: 3px;

    border: 1px solid #ccd4d8;
    border-radius: var(--radius-sm);

    background: #ffffff;
    color: var(--text);

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(23, 107, 91, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;
}

th,
td {
    padding: 12px 14px;

    border-bottom:
        1px solid var(--border);

    text-align: left;
    vertical-align: top;
}

th {
    background: var(--primary);
    color: #ffffff;

    font-weight: 600;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover,
tr:hover td {
    background: #f7fbfa;
}


/* =========================================================
   MENU
   ========================================================= */

.menu {
    list-style: none;

    padding: 0;
    margin: 0;

    display: grid;
    gap: 10px;
}

.menu li {
    margin: 0;
}

.menu a {
    display: flex;
    align-items: center;

    padding: 13px 16px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text);

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.04);

    transition: 0.2s ease;
}

.menu a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);

    border-color:
        rgba(23, 107, 91, 0.25);

    transform: translateX(2px);
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 20px;

    box-shadow: var(--shadow);

    transition: 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.dashboard-card h3 {
    margin-bottom: 6px;
}

.dashboard-card p {
    color: var(--muted);
}


/* =========================================================
   STAT CARD
   ========================================================= */

.stat-card {
    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 20px;

    box-shadow: var(--shadow);
}

.stat-number {
    display: block;

    margin-top: 5px;

    font-size: 30px;
    font-weight: 700;

    color: var(--primary);
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   ALERT
   ========================================================= */

.alert {
    padding: 13px 16px;

    border-radius: var(--radius-sm);

    margin-bottom: 18px;

    border: 1px solid transparent;
}

.alert-success {
    background: #eaf7ef;
    color: #146c43;
    border-color: #c9ead6;
}

.alert-danger {
    background: #fdeeee;
    color: #b02a37;
    border-color: #f4c7cc;
}

.alert-warning {
    background: #fff8df;
    color: #856404;
    border-color: #f0df9a;
}

.alert-info {
    background: #edf7f5;
    color: var(--primary-dark);
    border-color: #cbe8e1;
}


/* =========================================================
   DIVIDER
   ========================================================= */

hr {
    border: 0;

    border-top:
        1px solid var(--border);

    margin: 24px 0;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-container {
    text-align: center;
    width: 100%;
    max-width: 430px;

    margin: 60px auto;

    background: var(--surface);

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 12px 35px
        rgba(15, 81, 69, 0.10);
}

.login-container h1 {
    text-align: center;
    font-size: 25px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
}

.login-container button {
    width: 100%;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 35px;

    padding-top: 20px;

    border-top:
        1px solid var(--border);

    text-align: center;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 850px) {

    body {
        padding: 18px;
    }

    .dashboard-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE HP
   ========================================================= */

@media (max-width: 600px) {

    body {
        padding: 12px;

        font-size: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .container {
        max-width: 100%;
    }

    .card {
        padding: 16px;

        border-radius: 11px;
    }

    .header {
        padding: 17px;
    }

    input,
    select,
    textarea,
    button,
    .btn {
        width: 100%;

        max-width: none;

        font-size: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    th,
    td {
        white-space: nowrap;
        font-size: 14px;
    }

    .login-container {
        margin: 25px auto;

        padding: 22px;

        border-radius: 14px;
    }

}


/* =========================================================
   EXTRA SMALL HP
   ========================================================= */

@media (max-width: 380px) {

    body {
        padding: 9px;
    }

    h1 {
        font-size: 22px;
    }

    .card {
        padding: 14px;
    }

}
/* =========================================================
   BLUEPRINT UI
   SIDEBAR + TOPBAR + APP LAYOUT
   ========================================================= */

.app-layout {
    min-height: 100vh;
    display: flex;
    margin: -24px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 250px;
    min-height: 100vh;

    background: #123b35;
    color: #ffffff;

    display: flex;
    flex-direction: column;

    padding: 22px 15px;

    position: sticky;
    top: 0;

    align-self: flex-start;
}


.sidebar-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 5px 10px 25px;

    border-bottom:
        1px solid rgba(255,255,255,0.12);

    margin-bottom: 20px;
}


.brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 11px;

    font-size: 22px;
}


.sidebar-brand strong {
    display: block;

    font-size: 20px;

    color: #ffffff;
}


.sidebar-brand small {
    display: block;

    color: rgba(255,255,255,0.65);

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================================
   SIDEBAR NAV
   ========================================================= */

.sidebar-nav {
    flex: 1;
}


.nav-section-title {
    padding: 0 12px 9px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    color:
        rgba(255,255,255,0.45);
}


.nav-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    margin-bottom: 4px;

    border-radius: 9px;

    color:
        rgba(255,255,255,0.78);

    font-size: 14px;

    font-weight: 500;

    transition: 0.2s ease;
}


.nav-item:hover {
    background:
        rgba(255,255,255,0.09);

    color: #ffffff;

    transform: none;
}


.nav-item.active {
    background: #176b5b;

    color: #ffffff;

    box-shadow:
        0 4px 12px
        rgba(0,0,0,0.12);
}


.nav-item span {
    flex: 1;
}


.nav-divider {
    height: 1px;

    background:
        rgba(255,255,255,0.10);

    margin: 14px 8px;
}


.sidebar-bottom {
    border-top:
        1px solid
        rgba(255,255,255,0.10);

    padding-top: 12px;
}


.logout-item {
    color:
        rgba(255,255,255,0.65);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    flex: 1;

    min-width: 0;

    background: #f7f8f5;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    min-height: 72px;

    background: #ffffff;

    border-bottom:
        1px solid var(--border);

    padding: 14px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 10;
}


.topbar-title {
    font-size: 18px;

    font-weight: 700;

    color: var(--primary-dark);
}


.topbar small {
    color: var(--muted);
}


.user-info {
    display: flex;

    align-items: center;

    gap: 10px;
}


.user-info strong {
    display: block;

    font-size: 14px;
}


.user-info small {
    display: block;

    font-size: 12px;
}


.user-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-weight: 700;
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content {
    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    padding: 28px 30px 10px;
}


/* =========================================================
   WELCOME PANEL
   ========================================================= */

.welcome-panel {
    background:
        linear-gradient(
            135deg,
            #0f5b4d,
            #176b5b
        );

    color: #ffffff;

    border-radius: 16px;

    padding: 28px 30px;

    margin-bottom: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow:
        0 8px 25px
        rgba(15,91,77,0.15);
}


.welcome-panel h1 {
    color: #ffffff;

    font-size: 25px;

    margin: 7px 0;
}


.welcome-panel p {
    color:
        rgba(255,255,255,0.78);

    margin-bottom: 0;
}


.welcome-label {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    color:
        #e7d28c;
}


.welcome-icon {
    width: 76px;
    height: 76px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,0.12);

    font-size: 38px;
}


/* =========================================================
   SECTION
   ========================================================= */

.content-section {
    margin-bottom: 28px;
}


.section-heading {
    margin-bottom: 14px;
}


.section-heading h2 {
    margin-bottom: 3px;

    font-size: 20px;
}


.section-heading p {
    color: var(--muted);

    margin-bottom: 0;

    font-size: 14px;
}


/* =========================================================
   DASHBOARD CARD UPDATE
   ========================================================= */

.dashboard-card {
    text-decoration: none;

    display: block;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 13px;

    padding: 20px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.dashboard-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(23,107,91,0.25);

    box-shadow:
        0 8px 22px
        rgba(15,91,77,0.12);

    text-decoration: none;
}


.dashboard-card-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        var(--primary-light);

    margin-bottom: 14px;

    font-size: 21px;
}


.dashboard-card h3 {
    color: var(--primary-dark);

    margin-bottom: 5px;

    font-size: 17px;
}


.dashboard-card p {
    color: var(--muted);

    margin-bottom: 0;

    font-size: 13px;
}


/* =========================================================
   APP FOOTER
   ========================================================= */

.app-footer {
    text-align: center;

    padding: 22px 30px 28px;

    color: var(--muted);

    font-size: 12px;
}


.app-footer strong {
    color: var(--primary);
}


/* =========================================================
   RESPONSIVE APP
   ========================================================= */

@media (max-width: 850px) {

    .sidebar {
        width: 215px;
    }

    .topbar {
        padding: 14px 20px;
    }

    .page-content {
        padding: 22px 20px 10px;
    }

}


@media (max-width: 650px) {

    .app-layout {
        margin: -12px;
    }

    .sidebar {
        width: 68px;

        padding: 15px 9px;
    }

    .sidebar-brand {
        justify-content: center;

        padding:
            5px 0 18px;
    }

    .sidebar-brand > div:last-child {
        display: none;
    }

    .nav-section-title {
        display: none;
    }

    .nav-item {
        justify-content: center;

        padding: 12px 8px;
    }

    .nav-item span {
        display: none;
    }

    .nav-divider {
        margin: 10px 4px;
    }

    .topbar {
        padding: 12px 15px;
    }

    .user-info > div:last-child {
        display: none;
    }

    .page-content {
        padding: 18px 14px 5px;
    }

    .welcome-panel {
        padding: 22px;

        border-radius: 13px;
    }

    .welcome-panel h1 {
        font-size: 20px;
    }

    .welcome-icon {
        width: 55px;
        height: 55px;

        font-size: 27px;
    }

}
/* =========================================================
   STUDENT PROFILE
   ========================================================= */

.student-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 20px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.05);
}


.student-profile-avatar {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 23px;
    font-weight: 700;
}


.student-profile-info {
    flex: 1;
}


.student-profile-info h3 {
    margin-bottom: 3px;

    font-size: 18px;
}


.student-profile-info p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


.student-profile-data {
    display: flex;
    gap: 35px;
}


.student-profile-data div {
    display: flex;
    flex-direction: column;
}


.student-profile-data span {
    color: var(--muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.student-profile-data strong {
    color: var(--primary-dark);

    font-size: 14px;
}


/* =========================================================
   CARD ACTION
   ========================================================= */

.card-action {
    display: block;

    margin-top: 15px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}


.dashboard-card:hover .card-action {
    color: var(--primary-dark);
}


/* =========================================================
   MOBILE STUDENT PROFILE
   ========================================================= */

@media (max-width: 650px) {

    .student-profile-card {
        flex-wrap: wrap;

        padding: 16px;
    }


    .student-profile-info {
        min-width: 0;
    }


    .student-profile-data {
        width: 100%;

        padding-top: 14px;

        border-top:
            1px solid var(--border);

        gap: 30px;
    }

}
/* =========================================================
   DATA / LIST PAGE
   ========================================================= */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.page-header h1 {
    margin: 6px 0;

    color: var(--primary-dark);

    font-size: 25px;
}

.page-header p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 9px;

    background: var(--primary);

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;

    transition: 0.2s ease;
}

.primary-button:hover {
    background: var(--primary-dark);

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);
}


/* =========================================================
   SUMMARY
   ========================================================= */

.summary-card {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 230px;

    padding: 16px 18px;

    margin-bottom: 22px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 13px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.05);
}

.summary-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--primary-light);

    font-size: 21px;
}

.summary-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.7px;
}

.summary-card strong {
    display: block;

    color: var(--primary-dark);

    font-size: 22px;

    margin-top: 1px;
}


/* =========================================================
   DATA CARD
   ========================================================= */

.data-card {
    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.05);

    overflow: hidden;
}

.data-card-header {
    padding: 20px 22px;

    border-bottom:
        1px solid var(--border);
}

.data-card-header h2 {
    margin: 0 0 3px;

    font-size: 18px;
}

.data-card-header p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   DATA TABLE
   ========================================================= */

.data-table {
    margin: 0;

    border: 0;

    background: #ffffff;
}

.data-table th,
.data-table td {
    border: 0;

    border-bottom:
        1px solid var(--border);

    padding: 14px 16px;

    vertical-align: middle;
}

.data-table th {
    background: #f8faf8;

    color: var(--muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.data-table td {
    font-size: 13px;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr {
    transition: 0.15s ease;
}

.data-table tbody tr:hover {
    background: #fafcfb;
}

.table-title {
    color: var(--primary-dark);

    font-size: 14px;
}

.data-badge,
.class-badge {
    display: inline-block;

    padding: 4px 8px;

    border-radius: 6px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 600;
}

.date-text {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    text-align: center !important;

    padding: 50px 20px !important;

    color: var(--muted);
}

.empty-state div {
    font-size: 35px;

    margin-bottom: 8px;
}

.empty-state strong {
    display: block;

    color: var(--primary-dark);

    font-size: 15px;
}

.empty-state p {
    margin: 4px 0 0;

    font-size: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .page-header {
        align-items: stretch;

        flex-direction: column;
    }

    .primary-button {
        width: 100%;
    }

    .summary-card {
        width: 100%;
    }

    .data-card-header {
        padding: 16px;
    }

    .data-table th,
    .data-table td {
        padding: 11px 12px;
    }

}
/* =========================================================
   STUDENT MATERIAL
   ========================================================= */

.student-material-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.material-card {
    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 15px;

    padding: 21px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.material-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(23,107,91,0.25);

    box-shadow:
        0 9px 25px
        rgba(15,91,77,0.11);
}


.material-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 17px;
}


.material-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--primary-light);

    font-size: 23px;
}


.material-title {
    color: var(--primary-dark);

    font-size: 19px;

    line-height: 1.35;

    margin-bottom: 11px;
}


.material-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 15px;

    color: var(--muted);

    font-size: 12px;
}


.material-preview {
    color: #4b5563;

    font-size: 13px;

    line-height: 1.7;

    padding: 14px;

    background: #f8faf9;

    border-radius: 9px;

    max-height: 145px;

    overflow: hidden;

    position: relative;
}


.material-preview::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 40px;

    background:
        linear-gradient(
            transparent,
            #f8faf9
        );
}


.material-action {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 15px;

    padding: 10px 12px;

    border-radius: 8px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}


.material-action:hover {
    background: var(--primary);

    color: #ffffff;

    text-decoration: none;
}


.material-action span {
    font-size: 16px;
}


.material-no-file {
    margin-top: 15px;

    padding: 9px 11px;

    border-radius: 8px;

    background: #f4f5f5;

    color: var(--muted);

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   STUDENT EMPTY STATE
   ========================================================= */

.student-empty-state {
    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 15px;

    padding: 55px 25px;

    text-align: center;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.05);
}


.empty-state-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: var(--primary-light);

    font-size: 31px;
}


.student-empty-state h2 {
    margin-bottom: 6px;

    font-size: 20px;
}


.student-empty-state p {
    max-width: 450px;

    margin:
        0 auto 20px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    .student-material-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .material-card {
        padding: 17px;
    }

    .material-title {
        font-size: 17px;
    }

    .material-preview {
        max-height: 130px;
    }

}

/* =========================================================
   LIBRARY SMK AMIRUL MU'MININ
   STUDENT MATERIAL - FINAL UI
   ========================================================= */

:root {
    --primary: #176b5b;
    --primary-dark: #084f45;
    --primary-light: #e8f4f1;

    --sidebar: #0d4038;
    --sidebar-hover: #176b5b;

    --bg: #f5f8f7;
    --card: #ffffff;

    --text: #17312d;
    --muted: #71827f;

    --border: #e2e9e7;

    --shadow:
        0 4px 16px rgba(20, 70, 60, 0.07);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);

    color: var(--text);
}


/* =========================================================
   APP LAYOUT
   ========================================================= */

.app-layout {
    min-height: 100vh;

    display: flex;

    background: var(--bg);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 215px;

    min-height: 100vh;

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    padding: 22px 13px;

    background: var(--sidebar);

    color: #ffffff;

    z-index: 100;
}


/* BRAND */

.sidebar-brand {
    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        3px 8px
        22px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.12);
}

.brand-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 10px;

    font-size: 21px;
}

.sidebar-brand strong {
    display: block;

    font-size: 17px;

    line-height: 1.1;
}

.sidebar-brand small {
    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,0.65);

    font-size: 9px;
}


/* NAV */

.sidebar-nav {
    flex: 1;

    padding-top: 17px;
}

.nav-section-title {
    margin:
        0 10px
        9px;

    color:
        rgba(255,255,255,0.48);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.8px;
}

.nav-item {
    display: flex;

    align-items: center;

    gap: 11px;

    width: 100%;

    padding: 10px 12px;

    margin-bottom: 4px;

    border-radius: 8px;

    color:
        rgba(255,255,255,0.85);

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.nav-item:hover {
    background:
        rgba(255,255,255,0.09);

    color: #ffffff;

    text-decoration: none;
}

.nav-item.active {
    background:
        var(--sidebar-hover);

    color: #ffffff;

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,0.04);
}

.nav-divider {
    height: 1px;

    margin:
        13px 8px;

    background:
        rgba(255,255,255,0.10);
}

.sidebar-bottom {
    padding-top: 12px;

    border-top:
        1px solid
        rgba(255,255,255,0.10);
}

.logout-item {
    color:
        rgba(255,255,255,0.72);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    width: calc(100% - 215px);

    min-height: 100vh;

    margin-left: 215px;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 34px;

    background: #ffffff;

    border-bottom:
        1px solid
        var(--border);
}

.topbar-title {
    color: var(--text);

    font-size: 16px;

    font-weight: 700;
}

.topbar small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}

.user-info {
    display: flex;

    align-items: center;

    gap: 9px;
}

.user-avatar {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 13px;

    font-weight: 700;
}

.user-info strong {
    display: block;

    font-size: 11px;

    color: var(--text);
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content {
    width: 100%;

    max-width: 1080px;

    margin: 0 auto;

    padding:
        32px 34px
        50px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.welcome-label {
    display: block;

    margin-bottom: 5px;

    color: #d6ad48;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}

.page-header h1 {
    margin:
        0 0 6px;

    color:
        var(--primary-dark);

    font-size: 27px;

    line-height: 1.2;
}

.page-header p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   STUDENT MATERIAL GRID
   ========================================================= */

.student-material-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* =========================================================
   MATERIAL CARD
   ========================================================= */

.material-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 21px;

    background:
        var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.material-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(23,107,91,0.25);

    box-shadow:
        0 10px 26px
        rgba(20,70,60,0.11);
}


/* =========================================================
   CARD TOP
   ========================================================= */

.material-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 17px;
}

.material-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--primary-light);

    font-size: 22px;
}


/* =========================================================
   BADGES
   ========================================================= */

.data-badge,
.class-badge {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding:
        5px 9px;

    border-radius: 7px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   MATERIAL TITLE
   ========================================================= */

.material-title {
    margin:
        0 0 10px;

    color:
        var(--primary-dark);

    font-size: 19px;

    line-height: 1.35;
}


/* =========================================================
   MATERIAL META
   ========================================================= */

.material-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px 13px;

    margin-bottom: 15px;

    color: var(--muted);

    font-size: 11px;
}

.material-meta span {
    display: inline-flex;

    align-items: center;

    gap: 3px;
}


/* =========================================================
   MATERIAL PREVIEW
   ========================================================= */

.material-preview {
    position: relative;

    min-height: 70px;

    max-height: 125px;

    overflow: hidden;

    padding: 13px;

    border-radius: 9px;

    background:
        #f7faf9;

    color: #526560;

    font-size: 12px;

    line-height: 1.7;
}

.material-preview::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 42px;

    background:
        linear-gradient(
            transparent,
            #f7faf9
        );

    pointer-events: none;
}


/* =========================================================
   PDF ACTION
   ========================================================= */

.material-action {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 15px;

    padding:
        10px 12px;

    border-radius: 8px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.material-action:hover {
    background:
        var(--primary);

    color: #ffffff;

    text-decoration: none;
}

.material-action span {
    font-size: 15px;
}


/* =========================================================
   NO PDF
   ========================================================= */

.material-no-file {
    margin-top: 15px;

    padding:
        9px 11px;

    border-radius: 8px;

    background:
        #f2f5f4;

    color:
        var(--muted);

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.student-empty-state {
    padding:
        60px 25px;

    text-align: center;

    background:
        #ffffff;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    box-shadow:
        var(--shadow);
}

.empty-state-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 15px;

    border-radius: 17px;

    background:
        var(--primary-light);

    font-size: 30px;
}

.student-empty-state h2 {
    margin:
        0 0 7px;

    color:
        var(--primary-dark);

    font-size: 20px;
}

.student-empty-state p {
    max-width: 430px;

    margin:
        0 auto 20px;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        10px 16px;

    border-radius: 8px;

    background:
        var(--primary);

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.primary-button:hover {
    background:
        var(--primary-dark);

    color: #ffffff;

    text-decoration: none;

    transform:
        translateY(-1px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.app-footer {
    padding:
        0 34px
        25px;

    text-align: center;

    color:
        #84918e;

    font-size: 10px;
}

.app-footer strong {
    color:
        var(--primary-dark);
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 850px) {

    .sidebar {
        width: 190px;
    }

    .main-content {
        width: calc(100% - 190px);

        margin-left: 190px;
    }

    .page-content {
        padding:
            27px 23px
            40px;
    }

    .topbar {
        padding:
            0 23px;
    }

    .student-material-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .sidebar {
        width: 70px;

        padding:
            15px 9px;
    }

    .sidebar-brand {
        justify-content: center;

        padding:
            3px 0
            17px;
    }

    .sidebar-brand > div:last-child {
        display: none;
    }

    .brand-icon {
        width: 39px;
        height: 39px;
    }

    .nav-section-title {
        display: none;
    }

    .nav-item {
        justify-content: center;

        padding:
            11px 7px;

        font-size: 0;
    }

    .nav-item span {
        display: none;
    }

    .nav-item:first-letter {
        font-size: 16px;
    }

    .nav-divider {
        margin:
            10px 4px;
    }

    .main-content {
        width: calc(100% - 70px);

        margin-left: 70px;
    }

    .topbar {
        height: 64px;

        padding:
            0 15px;
    }

    .topbar-title {
        font-size: 14px;
    }

    .topbar small {
        font-size: 9px;
    }

    .user-info > div:last-child {
        display: none;
    }

    .page-content {
        padding:
            23px 15px
            35px;
    }

    .page-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .page-header p {
        font-size: 12px;
    }

    .student-material-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .material-card {
        padding: 17px;
    }

    .material-title {
        font-size: 17px;
    }

    .material-preview {
        max-height: 115px;
    }

    .app-footer {
        padding:
            0 15px
            20px;

        font-size: 9px;
    }

}

/* =========================================================
   PERBESAR NAMA MATA PELAJARAN
   ========================================================= */

.material-card .data-badge {
    font-size: 12px;
    padding: 6px 10px;
}

/* =========================================================
   QUIZ PAGE
   ========================================================= */

.quiz-table {
    min-width: 1050px;
}

.quiz-title {
    color: var(--primary-dark);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;
}

.quiz-description {
    max-width: 240px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;

    white-space: normal;
}


.duration-badge {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    padding:
        5px 8px;

    border-radius: 7px;

    background: #f5f3e8;

    color: #75651f;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


.table-action {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        8px 10px;

    border-radius: 7px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.table-action:hover {
    background: var(--primary);

    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   QUIZ MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .quiz-table {
        min-width: 950px;
    }

    .quiz-description {
        max-width: 200px;
    }

}

/* =========================================================
   DESKTOP SCALE - PC / LAPTOP
   ========================================================= */

@media (min-width: 1200px) {

    .page-content {
        max-width: 1220px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .topbar {
        padding-left: 40px;
        padding-right: 40px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .page-header p {
        font-size: 14px;
    }

    .data-card-header h2 {
        font-size: 18px;
    }

    .data-card-header p {
        font-size: 12px;
    }

    .quiz-table th {
        font-size: 11px;
    }

    .quiz-table td {
        font-size: 12px;
        padding: 14px 12px;
    }

    .quiz-title {
        font-size: 15px;
    }

    .quiz-description {
        font-size: 12px;
    }

    .data-badge,
    .class-badge {
        font-size: 11px;
        padding: 6px 10px;
    }

    .duration-badge {
        font-size: 11px;
        padding: 6px 9px;
    }

    .table-action {
        font-size: 12px;
        padding: 9px 12px;
    }

    .summary-card {
        padding: 18px 20px;
    }

}

/* =========================================================
   STUDENT QUIZ
   ========================================================= */

.student-quiz-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


.student-quiz-card {
    display: flex;

    flex-direction: column;

    padding: 21px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.student-quiz-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(23,107,91,0.25);

    box-shadow:
        0 10px 26px
        rgba(20,70,60,0.11);
}


/* =========================================================
   QUIZ TOP
   ========================================================= */

.student-quiz-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 17px;
}


.quiz-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 45px;

    border-radius: 11px;

    background:
        var(--primary-light);

    font-size: 22px;
}


/* =========================================================
   TITLE
   ========================================================= */

.student-quiz-title {
    margin:
        0 0 10px;

    color:
        var(--primary-dark);

    font-size: 19px;

    line-height: 1.35;
}


/* =========================================================
   META
   ========================================================= */

.student-quiz-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px 15px;

    margin-bottom: 15px;

    color:
        var(--muted);

    font-size: 11px;
}

.student-quiz-meta span {
    display: inline-flex;

    align-items: center;

    gap: 3px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.student-quiz-description {
    min-height: 70px;

    padding: 13px;

    border-radius: 9px;

    background:
        #f7faf9;

    color:
        #526560;

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 15px;
}


/* =========================================================
   ACTION
   ========================================================= */

.student-quiz-action {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding:
        11px 13px;

    border-radius: 8px;

    background:
        var(--primary);

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}


.student-quiz-action:hover {
    background:
        var(--primary-dark);

    color: #ffffff;

    text-decoration: none;

    transform:
        translateY(-1px);
}


.student-quiz-action strong {
    font-size: 16px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    .student-quiz-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .student-quiz-card {
        padding: 17px;
    }

    .student-quiz-title {
        font-size: 17px;
    }

    .student-quiz-description {
        min-height: 60px;
    }

}

/* =========================================================
   NILAI PAGE
   ========================================================= */

.nilai-table {
    min-width: 1100px;
}

.nis-text {
    color: var(--muted);
    font-size: 12px;
}

.student-name {
    color: var(--primary-dark);
    font-size: 13px;
}

.score-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 55px;

    padding:
        6px 9px;

    border-radius: 7px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 12px;

    font-weight: 800;
}

.nilai-table .quiz-title {
    font-size: 13px;
}

.nilai-table td {
    vertical-align: middle;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .nilai-table {
        min-width: 0;
    }

    .nilai-table th {
        font-size: 11px;
    }

    .nilai-table td {
        padding:
            14px 11px;

        font-size: 12px;
    }

    .student-name {
        font-size: 14px;
    }

    .nis-text {
        font-size: 12px;
    }

    .score-badge {
        font-size: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .nilai-table {
        min-width: 1100px;
    }

}

/* ==========================
   MASTER DATA
========================== */

.guru-table{
    min-width:900px;
}

.status-success,
.status-danger{
    display:inline-block;
    padding:6px 10px;
    border-radius:8px;
    font-size:11px;
    font-weight:700;
}

.status-success{
    background:#e7f7ef;
    color:#0f8b4c;
}

.status-danger{
    background:#fdecec;
    color:#c0392b;
}

@media(min-width:1200px){
    .guru-table{
        min-width:0;
    }
}

/* =========================================================
   KELAS
   ========================================================= */

.kelas-table {
    min-width: 700px;
}

.kelas-table td {
    vertical-align: middle;
}


@media (min-width: 1200px) {

    .kelas-table {
        min-width: 0;
    }

    .kelas-table th {
        font-size: 11px;
    }

    .kelas-table td {
        padding: 14px 12px;
        font-size: 12px;
    }

}

/* =========================================================
   MATA PELAJARAN
   ========================================================= */

.mapel-table {
    min-width: 750px;
}

.mapel-table td {
    vertical-align: middle;
}


.code-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        6px 9px;

    border-radius: 7px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.3px;
}


@media (min-width: 1200px) {

    .mapel-table {
        min-width: 0;
    }

    .mapel-table th {
        font-size: 11px;
    }

    .mapel-table td {
        padding:
            14px 12px;

        font-size: 12px;
    }

}

/* =========================================================
   PENUGASAN GURU
   ========================================================= */

.penugasan-table {
    min-width: 850px;
}

.penugasan-table td {
    vertical-align: middle;
}


@media (min-width: 1200px) {

    .penugasan-table {
        min-width: 0;
    }

    .penugasan-table th {
        font-size: 11px;
    }

    .penugasan-table td {
        padding: 14px 12px;
        font-size: 12px;
    }

}

/* =========================================================
   DATA MURID
   ========================================================= */

.murid-table {
    min-width: 950px;
}

.murid-table td {
    vertical-align: middle;
}


.username-text {
    color: var(--muted);
    font-size: 12px;
}


@media (min-width: 1200px) {

    .murid-table {
        min-width: 0;
    }

    .murid-table th {
        font-size: 11px;
    }

    .murid-table td {
        padding: 14px 12px;
        font-size: 12px;
    }

    .username-text {
        font-size: 11px;
    }

}

/* =========================================================
   KELOLA AKUN
   ========================================================= */

.akun-table {
    min-width: 1050px;
}

.akun-table td {
    vertical-align: middle;
}


.username-text {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   ROLE BADGE
   ========================================================= */

.role-badge {
    display: inline-flex;

    align-items: center;
    gap: 5px;

    padding:
        6px 9px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;
}


.role-badge.guru {
    background:
        var(--primary-light);

    color:
        var(--primary-dark);
}


.role-badge.murid {
    background:
        #f1eefb;

    color:
        #6653a5;
}


/* =========================================================
   RESET PASSWORD
   ========================================================= */

.reset-password-form {
    margin: 0;
}


.reset-button {
    padding:
        8px 11px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        #ffffff;

    color:
        var(--primary-dark);

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        all 0.2s ease;
}


.reset-button:hover {
    background:
        var(--primary-light);

    border-color:
        var(--primary);
}


/* =========================================================
   PASSWORD RESULT
   ========================================================= */

.account-result-card {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 20px;

    padding: 18px 20px;

    background:
        #f4faf7;

    border:
        1px solid #d7ebe2;

    border-radius: 14px;
}


.account-result-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        var(--primary-light);

    font-size: 21px;
}


.account-result-content {
    min-width: 0;
}


.account-result-content > strong {
    display: block;

    color:
        var(--primary-dark);

    font-size: 13px;
}


.account-result-content p {
    margin:
        10px 0 6px;

    color:
        var(--muted);

    font-size: 11px;
}


.temporary-password {
    display: inline-block;

    padding:
        9px 14px;

    border-radius: 8px;

    background:
        #ffffff;

    border:
        1px dashed var(--primary);

    color:
        var(--primary-dark);

    font-family:
        monospace;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 2px;
}


.account-result-content small {
    display: block;

    margin-top: 7px;

    color:
        var(--muted);

    font-size: 10px;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .akun-table {
        min-width: 0;
    }

    .akun-table th {
        font-size: 11px;
    }

    .akun-table td {
        padding:
            14px 11px;

        font-size: 12px;
    }

    .username-text {
        font-size: 11px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .akun-table {
        min-width: 1000px;
    }

    .account-result-card {
        padding: 15px;
    }

}

/* =========================================================
   AKTIVITAS GURU
   ========================================================= */

.aktivitas-guru-table {
    min-width: 1000px;
}

.aktivitas-guru-table td {
    vertical-align: middle;
}


@media (min-width: 1200px) {

    .aktivitas-guru-table {
        min-width: 0;
    }

    .aktivitas-guru-table th {
        font-size: 11px;
    }

    .aktivitas-guru-table td {
        padding: 14px 11px;
        font-size: 12px;
    }

}


@media (max-width: 650px) {

    .aktivitas-guru-table {
        min-width: 950px;
    }

}

/* =========================================================
   REKAP AKTIVITAS GURU
   ========================================================= */

.rekap-aktivitas-table {
    min-width: 1100px;
}

.rekap-aktivitas-table td {
    vertical-align: middle;
}


/* =========================================================
   COUNT BADGE
   ========================================================= */

.count-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        6px 9px;

    border-radius: 8px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;
}


@media (min-width: 1200px) {

    .rekap-aktivitas-table {
        min-width: 0;
    }

    .rekap-aktivitas-table th {
        font-size: 11px;
    }

    .rekap-aktivitas-table td {
        padding:
            14px 10px;

        font-size: 12px;
    }

}


@media (max-width: 650px) {

    .rekap-aktivitas-table {
        min-width: 1050px;
    }

}

/* =========================================================
   REKAP MINGGUAN GURU
   ========================================================= */

.rekap-mingguan-table {
    min-width: 1100px;
}

.rekap-mingguan-table td {
    vertical-align: middle;
}


/* =========================================================
   PERIOD CARD
   ========================================================= */

.period-card {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 18px;

    padding: 16px 20px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


.period-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: var(--primary-light);

    font-size: 20px;
}


.period-card span {
    display: block;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.5px;

    color: var(--muted);
}


.period-card strong {
    display: block;

    margin-top: 3px;

    font-size: 13px;

    color: var(--primary-dark);
}


.period-separator {
    display: inline !important;

    margin:
        0 6px;

    font-weight: 500 !important;

    letter-spacing: 0 !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .rekap-mingguan-table {
        min-width: 0;
    }

    .rekap-mingguan-table th {
        font-size: 11px;
    }

    .rekap-mingguan-table td {
        padding:
            14px 10px;

        font-size: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .rekap-mingguan-table {
        min-width: 1050px;
    }

    .period-card {
        padding:
            14px 15px;
    }

}

/* =========================================================
   UBAH PASSWORD
   ========================================================= */

.password-card {
    max-width: 700px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 16px;

    padding: 24px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.05);
}


.password-card-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--border);
}


.password-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        var(--primary-light);

    font-size: 21px;
}


.password-card-header h2 {
    margin: 0 0 3px;

    font-size: 17px;
}


.password-card-header p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   FORM
   ========================================================= */

.password-form {
    max-width: 560px;
}


.password-form .form-group {
    margin-bottom: 18px;
}


.password-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 700;
}


.password-form input {
    width: 100%;

    max-width: none;

    margin: 0;

    padding:
        11px 13px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #ffffff;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.password-form input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(0, 128, 96, 0.08);
}


.password-form small {
    display: block;

    margin-top: 6px;

    color:
        var(--muted);

    font-size: 10px;
}


/* =========================================================
   FORM FOOTER
   ========================================================= */

.password-form-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 25px;

    padding-top: 18px;

    border-top:
        1px solid var(--border);
}


.password-form-footer .primary-button,
.password-form-footer .secondary-button {
    text-decoration: none;
}


.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        10px 15px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background:
        #ffffff;

    color:
        var(--text);

    font-size: 12px;

    font-weight: 700;
}


.secondary-button:hover {
    background:
        #f7f8f9;

    text-decoration: none;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.password-message {
    max-width: 700px;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    padding:
        14px 17px;

    border-radius: 12px;

    font-size: 12px;
}


.password-message.success {
    background:
        #f0faf5;

    border:
        1px solid #d4ecdf;

    color:
        #19704f;
}


.password-message.error {
    background:
        #fff7f5;

    border:
        1px solid #f0d8d2;

    color:
        #a23b2d;
}


.password-message-icon {
    font-size: 18px;
}


/* =========================================================
   INFO
   ========================================================= */

.password-info {
    max-width: 700px;

    margin-top: 18px;

    padding:
        16px 18px;

    border-radius: 12px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 11px;
}


.password-info strong {
    font-size: 12px;
}


.password-info ul {
    margin:
        8px 0 0;

    padding-left: 18px;
}


.password-info li {
    margin-bottom: 4px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .password-card {
        padding: 18px;

        border-radius: 13px;
    }


    .password-form-footer {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .password-form-footer
    .primary-button,
    .password-form-footer
    .secondary-button {
        width: 100%;
    }

}

/* =========================================================
   MATERI GURU — POLISH UI
   ========================================================= */

.guru-material-table {
    width: 100%;
    overflow-x: auto;
}

.guru-material-table table {
    min-width: 760px;
}

.guru-material-table tbody tr {
    transition: 0.18s ease;
}

.guru-material-table tbody tr:hover {
    background: #f4faf8;
}

/* Judul materi */
.guru-material-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.guru-material-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: var(--primary-light);

    font-size: 17px;
}

.guru-material-title strong {
    display: block;
    color: var(--primary-dark);
    font-size: 14px;
    line-height: 1.4;
}

.guru-material-title small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

/* Tombol aksi */
.guru-material-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.guru-material-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 10px;
    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    background: var(--primary-light);
    color: var(--primary-dark);

    transition: 0.18s ease;
}

.guru-material-actions a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.guru-material-actions .btn-danger {
    background: #fdebec;
    color: var(--danger);
}

.guru-material-actions .btn-danger:hover {
    background: var(--danger);
    color: #ffffff;
}

/* Badge tipe file */
.guru-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 8px;
    border-radius: 7px;

    background: #fff6e5;
    color: #8a6415;

    font-size: 10px;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 650px) {

    .guru-material-table {
        margin: 0 -2px;
    }

    .guru-material-actions {
        flex-direction: column;
    }

    .guru-material-actions a {
        width: 100%;
    }

}

.form-card-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: none;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f7faf9;
    border: 1px dashed #b9ccc7;
    border-radius: 10px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--primary-light);
    font-size: 23px;
}

.upload-box strong {
    color: var(--primary-dark);
    font-size: 13px;
}

.upload-box p {
    margin: 3px 0 9px;
    color: var(--muted);
    font-size: 11px;
}

.upload-box input[type="file"] {
    padding: 7px;
    font-size: 12px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.form-footer .btn-secondary {
    width: auto;
}

.form-footer button {
    width: auto;
}

@media (max-width: 650px) {

    .form-card-body {
        padding: 17px;
    }

    .upload-box {
        align-items: flex-start;
    }

    .form-footer {
        flex-direction: column-reverse;
    }

    .form-footer .btn,
    .form-footer button {
        width: 100%;
    }

}

/* =========================================================
   MOBILE FIX - FINAL
   Jangan ubah CSS desktop di atas
   ========================================================= */

@media (max-width: 600px) {

    /* Sembunyikan sidebar di HP */
    .sidebar {
        display: none !important;
    }

    /* Konten memakai seluruh lebar HP */
    .app-layout {
        display: block !important;
        width: 100% !important;
        min-height: 100vh;
        margin: 0 !important;
    }

}

/* =========================================================
   MOBILE FIX - TOPBAR
   ========================================================= */

@media (max-width: 600px) {

    .topbar {
        position: relative !important;
        top: auto !important;
        z-index: 10;
        min-height: 72px;
    }

}
/* =========================================================
   ADMIN MENU - HIDDEN SESUAI REVISI
   Data tetap dipertahankan di sistem
   ========================================================= */

.sidebar .nav-item[href="mapel.php"],
.sidebar .nav-item[href="penugasan.php"],
.sidebar .nav-item[href="murid.php"] {
    display: none;
}