
/* ==================================
   ACCOUNT MANAGEMENT
================================== */

.account-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.account-actions form {
    margin: 0;
}

.role-badge,
.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.role-badge.admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-badge.guru {
    background: #dcfce7;
    color: #166534;
}

.role-badge.siswa {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.form-group select {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.feature .btn {
    margin-top: 14px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 650px) {

    .account-actions {
        min-width: 150px;
    }

    .account-actions .btn {
        font-size: 11px;
    }

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

/* LOGIN */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
}

.logo {
    width: 55px;
    height: 55px;
    background: #1d4ed8;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

h1 {
    font-size: 25px;
    margin-bottom: 10px;
}

.subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin: 18px 0 8px;
    font-size: 14px;
}

input:not([type="hidden"]) {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}

input:focus {
    border-color: #2563eb;
}

button {
    border: none;
    padding: 13px;
    border-radius: 8px;
    background: #1d4ed8;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.login-card button {
    width: 100%;
    margin-top: 23px;
}

button:hover {
    opacity: 0.9;
}

.login-card footer {
    margin-top: 25px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert.error {
    background: #fee2e2;
    color: #b91c1c;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}


/* DASHBOARD */

.dashboard-container {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-header .subtitle {
    margin-bottom: 8px;
}

.logout-button {
    background: #dc2626;
    padding: 12px 20px;
}

.welcome-card,
.content-card {
    background: white;
    padding: 28px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.welcome-card h2 {
    margin: 12px 0;
}

.welcome-card p {
    color: #64748b;
    margin-top: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.feature {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.feature p {
    margin-top: 10px;
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 600px) {

    .dashboard-header {
        align-items: flex-start;
    }

    .login-card,
    .welcome-card,
    .content-card {
        padding: 22px;
    }

}


/* ==================================
   CRUD AKUN LENGKAP
================================== */

.account-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.account-actions form {
    margin: 0;
}

.account-actions .btn {
    white-space: nowrap;
}

@media (max-width: 650px) {

    .account-actions {
        min-width: 170px;
    }

}

.attendance-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
    margin: 25px 0;
}

.attendance-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.attendance-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
    padding: 13px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.attendance-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.attendance-table select,
.attendance-table input {
    width: 100%;
    padding: 9px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
}

.attendance-table tr:hover {
    background: #f9fafb;
}

.alert.success {
    padding: 14px;
    margin: 15px 0;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
}

.attendance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.summary-card {
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-card span {
    color: #64748b;
    font-size: 14px;
}

.summary-card strong {
    font-size: 28px;
    color: #1e293b;
}

@media (max-width: 600px) {
    .summary-card {
        padding: 14px;
    }

    .summary-card strong {
        font-size: 23px;
    }
}
.export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}
.attendance-percentage {
    margin: 15px 0 25px;
}

.attendance-progress {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0;
}

.attendance-progress-bar {
    height: 100%;
    background: #16a34a;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.attendance-percentage small {
    color: #64748b;
}

.attendance-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-hadir {
    background: #dcfce7;
    color: #166534;
}

.status-izin {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-sakit {
    background: #fef3c7;
    color: #92400e;
}

.status-alpa {
    background: #fee2e2;
    color: #991b1b;
}

.attendance-percentage {
    margin: 15px 0 25px;
}

.attendance-progress {
    display: block;
    width: 100%;
    height: 12px;
    margin: 12px 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background: #e5e7eb;
}

.attendance-progress::-webkit-progress-bar {
    background: #e5e7eb;
    border-radius: 20px;
}

.attendance-progress::-webkit-progress-value {
    background: #16a34a;
    border-radius: 20px;
}

.attendance-progress::-moz-progress-bar {
    background: #16a34a;
    border-radius: 20px;
}

/* =================================
   DASHBOARD STATISTIK
================================= */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(150px, 1fr)
    );
    gap: 16px;
    margin: 20px 0 30px;
}

.statistics-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.statistics-card span {
    font-size: 14px;
    color: #64748b;
}

.statistics-card strong {
    font-size: 30px;
    color: #1e293b;
}

.statistics-card small {
    font-size: 12px;
    color: #64748b;
}

.stat-hadir {
    border-left: 4px solid #16a34a;
}

.stat-izin {
    border-left: 4px solid #2563eb;
}

.stat-sakit {
    border-left: 4px solid #d97706;
}

.stat-alpa {
    border-left: 4px solid #dc2626;
}

/* GRAFIK KEHADIRAN */

.attendance-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0 30px;
}

.chart-item {
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.chart-label span {
    font-size: 13px;
    color: #64748b;
}

.chart-progress {
    display: block;
    width: 100%;
    height: 13px;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background: #e5e7eb;
}

.chart-progress::-webkit-progress-bar {
    background: #e5e7eb;
    border-radius: 20px;
}

.chart-progress::-webkit-progress-value {
    background: #2563eb;
    border-radius: 20px;
}

.chart-progress::-moz-progress-bar {
    background: #2563eb;
    border-radius: 20px;
}

.chart-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 600px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .statistics-card {
        padding: 14px;
    }

    .statistics-card strong {
        font-size: 24px;
    }

    .chart-label {
        align-items: flex-start;
    }
}

/* FILTER STATISTIK */

.statistics-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
    margin: 20px 0 30px;
}

.statistics-filter button {
    min-height: 44px;
}

@media (max-width: 600px) {
    .statistics-filter {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   MODUL 9 - PENGAJUAN IZIN DAN SAKIT
===================================== */

.request-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 25px 0;
}

.request-card {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.request-header h3 {
    margin: 0 0 8px;
    color: #1e293b;
}

.request-header p {
    margin: 5px 0;
    color: #64748b;
    font-size: 14px;
}

.request-information {
    margin: 18px 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.request-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.request-review-form {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.btn-danger {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: white;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}

.empty-state {
    padding: 25px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .request-card {
        padding: 15px;
    }

    .request-header {
        flex-direction: column;
    }

    .request-review-form .form-actions {
        flex-wrap: wrap;
    }
}

/* =====================================
   MODUL 10 - SISTEM NOTIFIKASI
===================================== */

.notification-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    margin: 20px 0;
    background: #eff6ff;
    border-radius: 10px;
}

.notification-summary strong {
    font-size: 26px;
    color: #2563eb;
}

.notification-summary span {
    color: #475569;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.notification-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.notification-unread {
    border-left: 5px solid #2563eb;
    background: #f8fbff;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-header h3 {
    margin: 0;
    color: #1e293b;
}

.notification-message {
    margin: 15px 0;
    color: #475569;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.notification-time {
    color: #94a3b8;
    font-size: 12px;
}

.notification-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.notification-badge.unread {
    color: #1d4ed8;
    background: #dbeafe;
}

.notification-badge.read {
    color: #166534;
    background: #dcfce7;
}

.notification-card .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.notification-card form {
    margin: 0;
}

@media (max-width: 600px) {
    .notification-card {
        padding: 15px;
    }

    .notification-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
