/**
 * =====================================================
 * RAMADHAN ACTIVITIES - STYLESHEET
 * Tema: Hijau Islami dengan aksen Emas
 * =====================================================
 */

/* ===== VARIABLES ===== */
:root {
    --primary: #1a5f2a;
    --primary-dark: #0d3d1a;
    --primary-light: #2e8b3e;
    --secondary: #ffd700;
    --secondary-dark: #b8860b;
    --accent: #4ecdc4;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 400px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.login-header h1 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gray);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.label-icon {
    margin-right: 5px;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    font-size: 18px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 95, 42, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
    font-size: 14px;
}

.login-footer small {
    display: block;
    margin-top: 10px;
    color: var(--gray);
}

.login-logo {
    margin-bottom: 15px;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: white;
    padding: 10px;
}

/* Untuk header di dashboard */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
    .header-logo-img {
        width: 35px;
        height: 35px;
    }
}

/* Decorations */
.decoration {
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 { top: 10%; left: 10%; animation-delay: 0s; }
.decoration-2 { top: 20%; right: 15%; animation-delay: 1s; }
.decoration-3 { bottom: 20%; left: 15%; animation-delay: 2s; }
.decoration-4 { bottom: 10%; right: 10%; animation-delay: 3s; }

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px 30px;
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    font-size: 36px;
}

.header-text h1 {
    font-size: 20px;
    margin-bottom: 2px;
}

.header-text p {
    font-size: 13px;
    opacity: 0.9;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.back-btn {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    padding: 5px 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-action {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-icon {
    font-size: 20px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== INFO CARD ===== */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.info-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 15px 20px;
}

.info-header h3 {
    font-size: 16px;
}

.info-body {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray);
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: var(--dark);
}

/* ===== PROGRESS ===== */
.progress-section {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-count {
    font-weight: 600;
    color: var(--primary);
}

.progress-bar {
    height: 12px;
    background: var(--gray-light);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-complete {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    margin: 25px 0 15px;
}

.section-title h2 {
    font-size: 18px;
    color: var(--primary-dark);
}

.section-title p {
    font-size: 13px;
    color: var(--gray);
}

/* ===== ACTIVITY CARD ===== */
.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.activity-card.completed {
    border-left: 4px solid var(--success);
}

.activity-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
    background: #fafafa;
    border-bottom: 1px solid var(--gray-light);
}

.activity-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.activity-info {
    flex: 1;
}

.activity-info h3 {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 2px;
}

.activity-info small {
    font-size: 12px;
    color: var(--gray);
}

.activity-body {
    padding: 15px;
}

/* ===== BADGES ===== */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== UPLOAD INPUT ===== */
.upload-input input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.upload-input input[type="file"]:hover {
    border-color: var(--primary);
    background: #f8fff8;
}

.file-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray);
}

.file-preview-container {
    margin-top: 10px;
}

.file-preview-container img,
.file-preview-container video {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
}

/* ===== UPLOADED PREVIEW ===== */
.uploaded-preview {
    text-align: center;
}

.preview-media {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.upload-time {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gray);
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 95, 42, 0.3);
}

.btn-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: bounceIn 0.5s ease;
    border: 3px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.modal-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #fff;
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

.modal-title {
    color: var(--secondary);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.modal-danger .modal-title {
    color: var(--white);
}

.modal-message {
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-dua {
    color: #90EE90;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.modal-close-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-cancel {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: rgba(255,255,255,0.3);
}

.btn-confirm-delete {
    background: var(--white);
    color: var(--danger);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-confirm-delete:hover {
    background: #f8d7da;
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.toast-success {
    background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%);
    color: var(--white);
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    animation: toastIn 0.5s ease;
}

.toast-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 10px;
}

.toast-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
}

/* ===== STATISTICS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
}

/* ===== FILTER ===== */
.filter-section {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* ===== TABLE ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table tr.row-complete {
    background: #f0fff0;
}

.student-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.progress-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-mini {
    width: 80px;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.progress-fill-mini.complete {
    background: var(--success);
}

.progress-text {
    font-size: 12px;
    color: var(--gray);
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-view { background: #e3f2fd; }
.btn-edit { background: #fff3e0; }
.btn-delete { background: #ffebee; }

.btn-sm:hover {
    transform: scale(1.1);
}

/* ===== FORM CARD ===== */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-top: 20px;
}

.data-form .form-group {
    margin-bottom: 20px;
}

.data-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.data-form input,
.data-form select,
.data-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
}

.data-form input:focus,
.data-form select:focus,
.data-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.data-form input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--gray-light);
    margin: 25px 0;
}

.form-section-title {
    color: var(--primary);
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.radio-label:has(input:checked) {
    border-color: var(--primary);
    background: #f0fff0;
}

.radio-label input {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions .btn-cancel {
    background: var(--gray-light);
    color: var(--dark);
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
}

.form-actions .btn-submit {
    width: auto;
    margin-top: 0;
}

/* ===== GALLERY ===== */
.upload-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gallery-item.has-upload {
    border: 2px solid var(--success);
}

.gallery-item.no-upload {
    border: 2px solid var(--gray-light);
}

.gallery-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fafafa;
    border-bottom: 1px solid var(--gray-light);
}

.gallery-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.gallery-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.gallery-content {
    padding: 10px;
}

.gallery-media {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.gallery-empty {
    padding: 30px;
    text-align: center;
    color: var(--gray);
}

.gallery-empty span {
    font-size: 40px;
    opacity: 0.5;
}

.gallery-empty p {
    margin-top: 10px;
    font-size: 13px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes toastIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .upload-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* Download buttons */
.btn-download {
    background-color: #10b981;
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: #059669;
}

.download-kelas {
    margin-top: 15px;
    text-align: right;
}

.btn-download-kelas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-download-kelas:hover {
    background-color: #2563eb;
}

/* Update action buttons to accommodate new button */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Badge info */
.badge-info {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
    }
    
    .upload-gallery {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
}

/* Guru info badge */
.guru-info {
    font-size: 14px;
    color: #fbbf24;
    margin-top: 4px;
    font-weight: 500;
}

/* Text center for empty table */
.text-center {
    text-align: center;
    padding: 30px !important;
    color: #6b7280;
    font-style: italic;
}

/* Disabled select style */
select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}