/* =========================================================
   LMS SEKOLAH
   STYLE.CSS
   Versi bersih
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   BODY
========================================================= */

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
    padding-bottom: 75px;
}


/* =========================================================
   LOGIN
========================================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: #eaf2ff;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 32px;
}

.login-card h1 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 15px;
    outline: none;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4f8cff;
}


/* =========================================================
   BUTTON
========================================================= */

button {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    background: #4f8cff;
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {
    background: #fdeaea;
    color: #c62828;

    border: 1px solid #f5c2c2;

    padding: 10px 12px;

    border-radius: 8px;

    font-size: 13px;

    margin-bottom: 18px;

    text-align: center;
}


/* =========================================================
   FOOTER TEXT
========================================================= */

.footer-text {
    text-align: center;
    margin-top: 25px;

    font-size: 12px;
    color: #999;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    background: white;
    border-bottom: 1px solid #eee;

    position: sticky;
    top: 0;

    z-index: 100;
}

.header-content {
    max-width: 700px;
    margin: auto;

    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    font-size: 20px;
    margin-bottom: 3px;
}

.header p {
    font-size: 13px;
    color: #777;
}


/* =========================================================
   PROFILE BUTTON
========================================================= */

.profile-button {
    width: 42px;
    height: 42px;

    padding: 0;

    border-radius: 50%;
    background: #eaf2ff;

    font-size: 20px;
    color: #333;

    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.dashboard-container {
    max-width: 700px;
    margin: auto;
    padding: 20px;
}


/* =========================================================
   WELCOME
========================================================= */

.welcome {
    margin-bottom: 25px;
}

.welcome h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome p {
    color: #777;
    line-height: 1.5;
}


/* =========================================================
   MENU GRID
========================================================= */

.menu-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 30px;
}

.menu-card {
    background: white;

    border-radius: 14px;

    padding: 18px;

    text-decoration: none;
    color: #333;

    border: 1px solid #eee;

    transition: 0.2s;
}

.menu-card:hover {
    transform: translateY(-2px);
}

.menu-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.menu-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.menu-card p {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}


/* =========================================================
   SECTION
========================================================= */

.section {
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 18px;
}

.section-title a {
    font-size: 13px;
    color: #4f8cff;
    text-decoration: none;
}


/* =========================================================
   MATERIAL
========================================================= */

.material-card {
    background: white;

    border: 1px solid #eee;
    border-radius: 14px;

    padding: 15px;

    display: flex;
    align-items: center;

    margin-bottom: 10px;
}

.material-icon {
    width: 45px;
    height: 45px;

    background: #eaf2ff;

    border-radius: 10px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 21px;

    margin-right: 13px;
}

.material-info {
    flex: 1;
}

.material-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.material-info p {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.material-info span {
    font-size: 11px;

    background: #eaf7ed;
    color: #2e8b57;

    padding: 3px 8px;

    border-radius: 20px;
}


/* =========================================================
   TASK CARD
========================================================= */

.task-card {
    background: white;

    border: 1px solid #eee;
    border-radius: 14px;

    padding: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.task-card p {
    font-size: 12px;
    color: #777;
}

.task-status {
    background: #fff3cd;
    color: #856404;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;
}


/* =========================================================
   ADD BUTTON
========================================================= */

.add-button {
    display: block;

    width: 100%;

    padding: 13px 15px;

    margin-bottom: 20px;

    background: #4f8cff;
    color: white;

    text-align: center;
    text-decoration: none;

    border-radius: 10px;

    font-size: 15px;
    font-weight: bold;
}

.add-button:hover {
    opacity: 0.9;
}


/* =========================================================
   FILE & VIDEO BUTTON
========================================================= */

.file-button,
.video-button {
    display: inline-block;

    margin-top: 10px;
    margin-right: 6px;

    padding: 9px 12px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: bold;
}

.file-button {
    background: #eaf2ff;
    color: #2f6fed;
}

.video-button {
    background: #fff0f0;
    color: #d64545;
}

.file-button:hover,
.video-button:hover {
    opacity: 0.8;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;

    right: 5px;
    top: 50%;

    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    padding: 0;

    background: transparent;

    border: none;

    font-size: 18px;
    color: #777;

    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-password:hover {
    background: transparent;
    opacity: 0.7;
}


/* =========================================================
   PENGUMPULAN TUGAS
   RINGKASAN
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 20px;
}

.stat-card {
    background: white;

    border-radius: 14px;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 25px;
}

.stat-card strong {
    display: block;

    font-size: 20px;
}

.stat-card span {
    display: block;

    margin-top: 3px;

    font-size: 12px;

    color: #666;
}


/* =========================================================
   TABEL PENGUMPULAN
========================================================= */

.table-card {
    background: white;

    border-radius: 14px;

    padding: 15px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    margin-bottom: 20px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.submission-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}

.submission-table th {
    background: #f5f7fb;

    padding: 13px 12px;

    text-align: left;

    font-size: 13px;

    white-space: nowrap;
}

.submission-table td {
    padding: 13px 12px;

    border-bottom: 1px solid #eeeeee;

    font-size: 13px;

    vertical-align: middle;
}

.submission-table td:first-child,
.submission-table th:first-child {
    text-align: center;

    width: 45px;
}

.submission-table td strong {
    display: block;
}

.submission-table td small {
    display: block;

    margin-top: 3px;

    color: #777;
}


/* =========================================================
   STATUS PENGUMPULAN
========================================================= */

.status {
    display: inline-block;

    padding: 6px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;

    white-space: nowrap;
}

.status-belum {
    background: #fce8e8;
    color: #d64545;
}

.status-menunggu {
    background: #fff3cd;
    color: #9a7200;
}

.status-dinilai {
    background: #e4f5e9;
    color: #218838;
}


/* =========================================================
   TOMBOL AKSI TABEL
========================================================= */

.table-action {
    display: inline-block;

    padding: 7px 10px;

    background: #eaf2ff;

    color: #2f6fed;

    border-radius: 7px;

    text-decoration: none;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;
}

.table-action:hover {
    opacity: 0.8;
}

.action-disabled {
    color: #999;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.secondary-button {
    display: inline-block;

    padding: 10px 14px;

    background: white;

    color: #4f8cff;

    border: 1px solid #dfe6f2;

    border-radius: 9px;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;
}

.secondary-button:hover {
    background: #f5f8ff;
}


/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.bottom-nav {
    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;

    height: 65px;

    background: white;

    border-top: 1px solid #eee;

    display: flex;

    justify-content: space-around;
    align-items: center;

    z-index: 100;
}

.bottom-nav a {
    flex: 1;

    text-align: center;

    text-decoration: none;

    color: #888;

    font-size: 19px;
}

.bottom-nav small {
    display: block;

    font-size: 10px;

    margin-top: 3px;
}

.bottom-nav .active {
    color: #4f8cff;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {

    .dashboard-container {
        padding-top: 30px;
    }

    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bottom-nav {
        max-width: 700px;

        left: 50%;

        transform: translateX(-50%);

        border-radius: 15px 15px 0 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .dashboard-container {
        padding: 15px;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 13px;
    }

    .table-card {
        padding: 10px;
    }

    .submission-table {
        min-width: 680px;
    }

}


/* =========================================================
   FORM TAMBAHAN
========================================================= */

.form-card {
    background: white;

    border-radius: 14px;

    padding: 20px;

    margin-bottom: 20px;

    border: 1px solid #eee;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-card h3 {
    font-size: 17px;

    margin-bottom: 10px;
}

.form-card p {
    font-size: 13px;

    color: #666;

    line-height: 1.5;
}


/* =========================================================
   FILE INPUT
========================================================= */

input[type="file"] {
    background: white;

    padding: 10px;

    cursor: pointer;
}


/* =========================================================
   RESPONSIVE FORM
========================================================= */

@media (max-width: 600px) {

    .form-card {
        padding: 15px;
    }

    .welcome h1 {
        font-size: 21px;
    }

    .header-content {
        padding: 13px 15px;
    }

    .header h2 {
        font-size: 18px;
    }

}

.btn-pengumpulan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    box-sizing: border-box;
    margin-top: 12px;

    background: #eaf2ff;
    color: #4f8cff !important;
    border: 1px solid #d7e5ff;
    border-radius: 9px;

    text-decoration: none !important;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.btn-pengumpulan:hover {
    background: #dceaff;
    color: #3f7ee8 !important;
    text-decoration: none !important;
}