/* Custom Animations & Styling Extensions */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Glassmorphism Card Utilities */
.glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(20, 184, 166, 0.1);
}

/* Badge & Skill Styles */
.skill-pill-reading {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-pill-listening {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.skill-pill-speaking {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.skill-pill-writing {
    background-color: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Attendance Status Badge Colors strictly as requested (#22c55e for Geldi, #ef4444 for Gelmedi) */
.badge-geldi {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
}

.badge-geldi:hover {
    background-color: rgba(34, 197, 94, 0.25) !important;
}

.badge-gelmedi {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.badge-gelmedi:hover {
    background-color: rgba(239, 68, 68, 0.25) !important;
}

/* Toast animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-enter {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Row edit highlight */
.tr-highlight {
    animation: highlightFade 1.5s ease-out;
}

@keyframes highlightFade {
    0% { background-color: rgba(20, 184, 166, 0.25); }
    100% { background-color: transparent; }
}

/* Print styling for attendance reports */
@media print {
    header, #breadcrumbBar, footer, button, select, input {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    #viewClassDetail {
        display: block !important;
    }
    table {
        color: black !important;
        border: 1px solid #ccc !important;
    }
    th, td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
    }
}
