/* Custom styles untuk aplikasi absensi */
body {
    box-sizing: border-box;
}

@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

.print-only { display: none; }

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, #fbbf24, #f59e0b, #d97706, #92400e);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* RFID Scanner Styles */
.rfid-scanner {
    background: #34495e;
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    margin: 15px 0;
    transition: all 0.3s ease;
    min-height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rfid-scanner.scanning {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.student-name-display {
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 3px 0;
    min-height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.student-class-display {
    font-size: 1em;
    color: #ecf0f1;
    text-align: center;
    margin: 3px 0;
}

/* WARNA BEDA-BEDA SETIAP BARIS */
.row-color-0 { background: #e8f5e8 !important; }
.row-color-1 { background: #e3f2fd !important; }
.row-color-2 { background: #f3e5f5 !important; }
.row-color-3 { background: #fff3e0 !important; }
.row-color-4 { background: #fce4ec !important; }
.row-color-5 { background: #e0f2f1 !important; }
.row-color-6 { background: #f1f8e9 !important; }
.row-color-7 { background: #fff8e1 !important; }

.number-column {
    width: 50px;
    text-align: center;
    font-weight: bold;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.student-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #bdc3c7;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #7f8c8d;
    background-size: cover;
    background-position: center;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rfid-scanner {
        padding: 15px 20px;
        min-height: 80px;
    }
    
    .student-name-display {
        font-size: 1.1em;
    }
    
    .student-photo {
        width: 120px;
        height: 120px;
        font-size: 2em;
    }
}
/* MODAL STYLES */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #374151;
}

.close-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.close-btn:hover {
    background: #dc2626;
}

.modal-body {
    min-height: 200px;
}