/* Main App Custom Styles - Blue & White Theme */
:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --bg-main: #f8fafc;
}

body {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background-color: var(--bg-main);
    color: #1e293b;
}

/* Glassmorphism for Light Theme */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.glass-card {
    background: white;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0.5;
    }
}

.animate-scan {
    animation: scan 2s linear infinite;
}

section {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes toastPopIn {
    0% {
        transform: translate(-50%, -100%) scale(0.8);
        opacity: 0;
    }

    70% {
        transform: translate(-50%, 0) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-toast {
    animation: toastPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Navigation Styling */
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.nav-btn.active {
    color: #2563eb;
    transform: translateY(-5px);
}

/* Grade Card Styling */
.grade-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.grade-card:active {
    transform: scale(0.95);
    background: #f1f5f9;
}

/* Student List Item */
.student-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.student-item.present {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

/* Custom Checkbox */
.checkbox-pro {
    appearance: none;
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-pro:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.checkbox-pro:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
}

/* Scrollbar Hide */
::-webkit-scrollbar {
    width: 0;
}

.input-pro {
    width: 100%;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    outline: none;
    transition: all 0.2s;
    color: #1e293b;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-pro:focus {
    border-color: #2563eb;
}