/* Custom CSS for King BI Training Management System Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: #0b0f19;
    color: #f1f5f9;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.glass-panel-hover:hover {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.1), 0 8px 10px -6px rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

/* Glowing Neon Effects */
.glow-purple {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.glow-blue {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.glow-emerald {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

/* Tab/Row transitions */
.student-row {
    transition: all 0.2s ease;
}

.student-row:hover {
    background-color: rgba(30, 41, 59, 0.5) !important;
}

/* Custom Checkbox/Input styling for dark-mode premium look */
input[type="text"], input[type="tel"], input[type="date"], select {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(51, 65, 85, 1) !important;
    color: #f8fafc !important;
    transition: all 0.2s ease;
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2) !important;
    outline: none !important;
}

/* Gradient text */
.text-gradient-purple-blue {
    background: linear-gradient(135deg, #c084fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Print Styles */
@media print {
    aside, header, .glass-panel > div:first-child button, [data-modal-target],
    #search-students, #filter-cohort, #filter-status, #filter-discount,
    button, a[href]:not([href^="uploads"]) { display: none !important; }

    body { background: #fff !important; color: #000 !important; font-family: sans-serif; }
    main { display: block !important; }
    .glass-panel { background: #fff !important; border: 1px solid #ddd !important; backdrop-filter: none !important; }
    table { width: 100%; border-collapse: collapse; font-size: 11px; }
    th, td { border: 1px solid #ccc; padding: 6px 8px; color: #000 !important; text-align: left; }
    th { background: #f0f0f0 !important; }
    .student-row:hover { background: none !important; }

    /* Print header */
    main::before {
        content: "King BI — Répertoire des Étudiants — " attr(data-date);
        display: block;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 12px;
    }
}

/* Mobile responsive utilities (xs breakpoint) */
@media (max-width: 480px) {
    .xs\:hidden {
        display: none !important;
    }
    .xs\:inline {
        display: inline !important;
    }
    .xs\:block {
        display: block !important;
    }
}
