/* style.css - Complete Latest Version */

/* === RESET & GLOBAL STYLES === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #007bff;
}

/* === LOGIN PAGE LAYOUT === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    padding: 40px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.login-box p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
}

.login-info code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 600;
}

/* === MAIN APP LAYOUT === */
#app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* === SIDEBAR DARK MODE === */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a222e 0%, #2d3748 100%);
    border-right: 1px solid #2d3748;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 200;
    transition: width 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-logo-text {
    display: none;
}

.sidebar-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #a0aec0;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.sidebar-nav a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-text {
    font-size: 14px;
}

.sidebar-footer {
    padding: 0 10px;
    margin-top: auto;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #a0aec0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-footer a:hover {
    color: #fff;
    background-color: rgba(220, 53, 69, 0.2);
}

.sidebar-footer a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* === MAIN CONTENT === */
.main-content-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed+.main-content-wrapper {
    margin-left: 80px;
}

.main-header {
    background-color: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.header-right {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f4f7fa;
}

/* === PAGE CARDS === */
.page-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e6f0;
}

/* === FORM STYLES === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    line-height: 1;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #545b62;
    border-color: #4e555b;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    color: white;
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-outline {
    background: white;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline:hover:not(:disabled) {
    background: #007bff;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
    background-color: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* === TABLES === */
.table-container {
    width: 100%;
    overflow-x: auto;
    max-height: 60vh; /* Adjust this value as needed */
    overflow-y: auto;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e6f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
}

.data-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #e3e6f0;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

.text-danger {
    color: #dc3545 !important;
}

/* === STATUS LABELS & BADGES === */
.status-label {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    color: white;
}

.status-valid {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-invalid {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.status-diterima {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-ditolak {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.status-proses {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.status-belum-diverifikasi {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

/* === ROLE BADGES === */
.role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin_cabdin {
    background-color: #dc3545;
    color: white !important;
}

.role-admin_sekolah {
    background-color: #007bff;
    color: white !important;
}

/* === BENTUK BADGES === */
.bentuk-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.bentuk-sma {
    background-color: #007bff;
    color: white;
}

.bentuk-smk {
    background-color: #28a745;
    color: white;
}

.bentuk-unknown {
    background-color: #6c757d;
    color: white;
}

/* === KUOTA SPECIFIC STYLES === */
.kuota-terpakai {
    font-weight: 600;
    color: #495057;
}

.kuota-terpakai.has-data {
    color: #007bff;
}

.kuota-sisa {
    font-weight: 600;
    color: #28a745;
}

.kuota-sisa.zero {
    color: #dc3545;
    font-weight: bold;
}

.persentase-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    display: inline-block;
    min-width: 45px;
    text-align: center;
}

.persentase-success {
    background-color: #28a745;
}

.persentase-warning {
    background-color: #ffc107;
    color: #212529;
}

.persentase-danger {
    background-color: #dc3545;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #495057;
    margin: 0;
}

/* === ACTION BUTTONS === */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 6px 10px;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === PAGINATION === */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-controls .btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 0 12px;
    color: #6c757d;
    font-weight: bold;
}

/* === MODALS === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modal-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.close-button {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 24px;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.close-button:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #dee2e6;
}

/* === INFO CARDS === */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    margin-top: 20px;
}

.info-card.warning {
    border-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.info-card i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-card ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* === CHARTS === */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content-wrapper {
        margin-left: 0;
    }

    .main-header {
        padding: 15px 20px;
    }

    .main-content {
        padding: 20px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 12px;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
        min-width: unset;
    }

    .action-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
    }

    .action-buttons .btn {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h3 {
        font-size: 12px;
    }

    .stat-card p {
        font-size: 24px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .chart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .bentuk-badge,
    .persentase-badge,
    .status-label,
    .role-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-sm {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* === ADMIN ONLY ELEMENTS === */
.admin-only {
    display: block;
}

/* === LOADING STATES === */
.table-loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === DARK MODE PREFERENCES === */
@media (prefers-color-scheme: dark) {
    .pagination-container {
        background: linear-gradient(135deg, #2d3748, #1a202c);
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .filter-bar {
        background: linear-gradient(135deg, #2d3748, #1a202c);
        border-color: #4a5568;
    }
}

/* Stat Card Enhancements */
.stat-subtitle {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card h3 i {
    margin-right: 8px;
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-action-card {
    display: block;
    padding: 25px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.quick-action-card i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.quick-action-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.quick-action-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Kategori Summary */
.kategori-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kategori-summary h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.kategori-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kategori-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kategori-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kategori-label {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 14px;
}

.kategori-value {
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    max-width: 350px;
    border-left: 4px solid #007bff;
    animation: toastSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === LOADING STATES === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.table-loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === PROGRESS BARS === */
.progress {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent);
    background-size: 20px 20px;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 20px 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* === FILE UPLOAD STYLES === */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
    min-height: 120px;
    text-align: center;
    flex-direction: column;
}

.file-upload:hover .file-upload-label,
.file-upload.dragover .file-upload-label {
    border-color: #007bff;
    background: #e7f3ff;
    color: #007bff;
}

.file-upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 14px;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 5px !important;
}

.mt-2 {
    margin-top: 10px !important;
}

.mt-3 {
    margin-top: 15px !important;
}

.mt-4 {
    margin-top: 20px !important;
}

.mt-5 {
    margin-top: 30px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 5px !important;
}

.mb-2 {
    margin-bottom: 10px !important;
}

.mb-3 {
    margin-bottom: 15px !important;
}

.mb-4 {
    margin-bottom: 20px !important;
}

.mb-5 {
    margin-bottom: 30px !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 5px !important;
}

.p-2 {
    padding: 10px !important;
}

.p-3 {
    padding: 15px !important;
}

.p-4 {
    padding: 20px !important;
}

.p-5 {
    padding: 30px !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* === ACCESSIBILITY IMPROVEMENTS === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* === HIGH CONTRAST MODE SUPPORT === */
@media (prefers-contrast: high) {

    .btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }

    .nav-item:hover,
    .nav-item.active {
        border: 2px solid #fff;
    }
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* === PRINT STYLES === */
@media print {

    .sidebar,
    .sidebar-toggle,
    .action-buttons,
    .modal {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .page-header {
        box-shadow: none;
        border-bottom: 1px solid #000;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 6px 8px;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e4e4e4;
    }

    .content-section,
    .stat-card,
    .quick-action-card {
        background: #2d2d2d;
        color: #e4e4e4;
    }

    .page-header {
        background: #2d2d2d;
        color: #e4e4e4;
    }

    .section-header {
        background: #3a3a3a;
    }

    .table th {
        background: #3a3a3a;
        color: #e4e4e4;
    }

    .table tr:hover {
        background-color: #3a3a3a;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #3a3a3a;
        border-color: #555;
        color: #e4e4e4;
    }

    .modal-content {
        background: #2d2d2d;
        color: #e4e4e4;
    }

    .modal-header {
        background: #3a3a3a;
    }

    .pagination-container {
        background: linear-gradient(135deg, #2d3748, #1a202c);
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .filter-bar {
        background: linear-gradient(135deg, #2d3748, #1a202c);
        border-color: #4a5568;
    }
}

/* === ADDITIONAL FORM ENHANCEMENTS === */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-group.has-success input,
.form-group.has-success select,
.form-group.has-success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.input-group-append {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
}

/* === TABLE ENHANCEMENTS === */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, .075);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* === ADDITIONAL BUTTON STYLES === */
.btn-block {
    display: block;
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 0;
}

.btn-group .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

/* === FINAL RESPONSIVE IMPROVEMENTS === */
@media (max-width: 576px) {
    .page-title {
        font-size: 20px;
    }

    .section-content {
        padding: 15px;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: none;
    }

    .chart-container {
        height: 250px;
        padding: 15px;
    }
}

/* === PROFILE PAGE STYLES === */
/* Add these styles to your existing style.css */

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.profile-info p {
    margin: 5px 0;
    color: #6c757d;
}

/* Profile Forms Grid */
.profile-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
}

.password-input-group input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #007bff;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.password-strength.weak {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.password-strength.medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.password-strength.strong {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Password Match Indicator */
.password-match {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-match.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-match.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Account Information Grid */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Status Badge in Profile */
.info-item .status-badge {
    align-self: flex-start;
    margin-top: 2px;
}

/* Profile Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .profile-info h2 {
        font-size: 20px;
    }

    .profile-forms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .password-input-group input {
        padding-right: 40px;
    }

    .password-toggle {
        right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 15px 0;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

    .info-item {
        padding: 12px;
    }

    .password-strength,
    .password-match {
        font-size: 11px;
        padding: 6px 8px;
    }
}


/* === DESKTOP-FIRST RESPONSIVE IMPROVEMENTS === */
@media (min-width: 1400px) {
    .stats-grid,
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === SISWA PAGE BADGES === */

/* Verifikasi Status */
.status-verifikasi-sah {
    background: linear-gradient(135deg, #28a745, #20c997);
}
.status-verifikasi-tidak-valid {
    background: linear-gradient(135deg, #dc3545, #c82333);
}
.status-verifikasi-belum-diverifikasi {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* Kategori Status */
.kategori-dtks {
    background: linear-gradient(135deg, #007bff, #0056b3);
}
.kategori-ats {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}
.kategori-anak-panti {
    background: linear-gradient(135deg, #17a2b8, #138496);
}
.kategori-disabilitas {
    background: linear-gradient(135deg, #6f42c1, #563d7c);
}

/* Penerimaan Status */
.status-penerimaan-diterima {
    background: linear-gradient(135deg, #28a745, #20c997);
}
.status-penerimaan-ditolak {
    background: linear-gradient(135deg, #dc3545, #c82333);
}
.status-penerimaan-dalam-proses {
    background: linear-gradient(135deg, #fd7e14, #e86a00);
}

.status-label.kategori-default,
.status-label.status-verifikasi-default,
.status-label.status-penerimaan-default {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}