/* ==================================================
   CSS GLOBAL WEBSITE
   ================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #5b5be7;
    --primary2: #8b7cf6;
    --bg: #f4f7ff;
    --text: #20243a;
    --muted: #6b7280;
    --card: #fff;
    --border: #e7e9f5;
    --shadow: 0 12px 35px rgba(50,55,100,.08);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================================================
   MEMBUAT TAMPILAN HALAMAN LOGIN
   ================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #5656df, #9186f8);
}

.login-box {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(25,28,70,.25);
    padding: 34px;
}

.login-box h1 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 6px;
}

.login-box p {
    color: var(--muted);
    margin-bottom: 24px;
}

.login-box label {
    display: block;
    font-weight: 700;
    margin: 14px 0 7px;
}

.login-box input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dfe2ef;
    border-radius: 12px;
    font-size: 15px;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91,91,231,.1);
}

.login-box button,
.btn-primary {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
}

.login-box button {
    width: 100%;
    margin-top: 20px;
}

/* ==================================================
   MEMBUAT TAMPILAN HALAMAN SISWA
   ================================================== */

.siswa-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f7f8ff 0%, #eef1fb 100%);
}

.siswa-navbar {
    height: 76px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    box-shadow: 0 8px 25px rgba(91,91,231,.2);
}

.nav-inner {
    width: min(1120px, 92%);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-profile {
    text-align: right;
    font-size: 13px;
    line-height: 1.25;
}

.student-profile strong {
    font-size: 15px;
}

.logout {
    background: #fff;
    color: #4548b8;
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.student-container {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 34px 0 50px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 15px 35px rgba(91,91,231,.18);
    position: relative;
    overflow: hidden;
}

.welcome-card:after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    right: -55px;
    top: -70px;
    background: rgba(255,255,255,.12);
}

.badge-kelas {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-title {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    opacity: .9;
}

.section-title {
    font-size: 22px;
    margin: 28px 0 14px;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.class-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-card:hover {
    transform: translateY(-3px);
    border-color: #bfc3f7;
}

.class-card.active {
    border: 2px solid var(--primary);
    padding: 17px;
    background: #f7f7ff;
}

.class-name {
    font-weight: 800;
}

.class-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef0ff;
    color: var(--primary);
    font-weight: 800;
}

.schedule-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0 15px;
}

.schedule-head h2 {
    font-size: 25px;
}

.schedule-head small {
    color: var(--muted);
}

.day-tabs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.day-tab {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 700;
    color: #555b70;
}

.day-tab.active,
.day-tab:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.schedule-list {
    display: grid;
    gap: 13px;
}

.schedule-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 17px;
    padding: 19px 20px;
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow);
}

.time {
    font-weight: 800;
    color: var(--primary);
    background: #f0f1ff;
    padding: 11px 12px;
    border-radius: 11px;
    text-align: center;
    white-space: nowrap;
}

.subject {
    font-size: 18px;
    font-weight: 800;
}

.teacher {
    font-size: 14px;
    color: var(--muted);
    margin-top: 5px;
}

.empty {
    background: #fff;
    border: 1px dashed #cdd1e6;
    border-radius: 17px;
    padding: 35px;
    text-align: center;
    color: var(--muted);
}

.footer {
    text-align: center;
    color: #7a7f91;
    font-size: 13px;
    padding: 25px 0;
}

@media (max-width: 800px) {

    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-title {
        font-size: 30px;
    }

    .schedule-card {
        grid-template-columns: 1fr;
    }

    .time {
        width: max-content;
    }

    .student-profile {
        display: none;
    }
}

@media (max-width: 520px) {

    .class-grid {
        grid-template-columns: 1fr;
    }

    .student-container {
        width: 94%;
        padding-top: 22px;
    }

    .welcome-card {
        padding: 25px;
    }

    .welcome-title {
        font-size: 27px;
    }

    .nav-inner {
        width: 94%;
    }

    .brand {
        font-size: 19px;
    }

    .schedule-head {
        display: block;
    }

    .schedule-head small {
        display: block;
        margin-top: 4px;
    }
}

/* ==================================================
   MEMBUAT STYLE TAMBAHAN HALAMAN ADMIN
   ================================================== */

.admin-brand {
    font-weight: 700;
}
