/* ========================================
   RESET
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: #f5f7fb;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    padding: 45px 50px;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-logo {
    width: 95px;
    height: 95px;
    display: block;
    object-fit: contain;
    margin: 0 auto 22px;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #172554;
    margin-bottom: 6px;
}

.login-school {
    font-size: 19px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 14px;
}

.login-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}


/* ========================================
   FORM
   ======================================== */

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: 0.2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group select {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #ffffff;
    color: #1f2937;
    font-size: 16px;
    font-family: Arial, sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    transition: 0.2s ease;
}

.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* ========================================
   LOGIN BUTTON
   ======================================== */

.login-button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    cursor: pointer;
    margin-top: 6px;
    transition: 0.2s ease;
}

.login-button:hover {
    background: #1d4ed8;
}

.login-button:active {
    transform: translateY(1px);
}


/* ========================================
   APP / HEADER
   ======================================== */

.app {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 50px;
}

.header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #172554;
    margin-bottom: 6px;
}

.header p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.4;
}

/* Nama + role pengguna dibuat lebih menonjol */
.header #user-info {
    color: #2563eb;
    font-size: 20px;
    font-weight: 600;
    margin-top: 7px;
}


/* ========================================
   DASHBOARD
   ======================================== */

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-card {
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

.menu-card h2 {
    font-size: 20px;
    color: #172554;
    margin-bottom: 10px;
}

.menu-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.menu-card button {
    border: none;
    padding: 11px 20px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.menu-card button:hover {
    background: #1d4ed8;
}


/* ========================================
   LOGOUT
   ======================================== */

#logout-button {
    display: block;
    width: 150px;
    height: 50px;
    margin: 36px auto 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #dc2626;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: 0.2s ease;
}

#logout-button:hover {
    background: #b91c1c;
}

#logout-button:active {
    transform: translateY(1px);
}


/* ========================================
   DATA GURU
   ======================================== */

.data-guru-page {
    width: 100%;
}

.back-button {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
}

.back-button:hover {
    color: #1d4ed8;
}

.data-guru-page .menu-card {
    width: 100%;
    max-width: none;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.page-title h2 {
    margin-bottom: 8px;
}

.page-title p {
    margin-bottom: 0;
}

.teacher-form {
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.teacher-form h3 {
    font-size: 18px;
    color: #172554;
    margin-bottom: 22px;
}

.teacher-form .form-group {
    margin-bottom: 18px;
}

#teacher-list {
    margin-top: 10px;
}

.teacher-item {
    padding: 18px 0;
    color: #64748b;
    line-height: 1.8;
}

.teacher-item strong {
    display: block;
    font-size: 17px;
    color: #172554;
    margin-bottom: 6px;
}

#teacher-list hr {
    border: none;
    border-top: 1px solid #e2e8f0;
}

#save-teacher-button {
    border: none;
    padding: 12px 22px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#save-teacher-button:hover {
    background: #1d4ed8;
}

#save-teacher-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 27px;
    }
}

@media (max-width: 600px) {
    .app {
        padding: 25px 16px 40px;
    }

    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .login-logo {
        width: 80px;
        height: 80px;
    }

    .login-card h1 {
        font-size: 24px;
    }

    .header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    .logo {
        width: 55px;
        height: 55px;
    }

    .header h1 {
        font-size: 22px;
    }

    .header p {
        font-size: 14px;
    }

    .header #user-info {
        font-size: 17px;
    }

    .page-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title button {
        width: 100%;
    }

    .teacher-form {
        padding: 20px;
    }
}
