/* public/assets/css/style.css */
/* Modern Glassmorphism & Custom School UI System with Dark/Light Support */

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

:root {
    --font-thai: 'Sarabun', sans-serif;
    --font-eng: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-thai);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-english {
    font-family: var(--font-eng), var(--font-thai);
}

/* Base Transition */
body, header, footer, table, tr, td, th, input, select, textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Background mesh configuration */
.bg-gradient-mesh {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.04) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(14, 165, 233, 0.04) 0px, transparent 50%);
}

.dark .bg-gradient-mesh {
    background-color: #0b0f19;
    background-image: 
        radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(14, 165, 233, 0.1) 0px, transparent 50%);
}

/* Glassmorphism Styles */
.glass-nav {
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dark .glass-nav {
    background: rgba(11, 15, 25, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 20px 0px rgba(99, 102, 241, 0.04);
    transform: translateY(-4px);
}

.dark .glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px 0px rgba(99, 102, 241, 0.15);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .glass-modal {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #1e293b;
    transition: all 0.3s ease;
}

.glass-input option {
    background-color: #ffffff;
    color: #1e293b;
}

.dark .glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dark .glass-input option {
    background-color: #1e293b;
    color: #ffffff;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    outline: none;
}

.dark .glass-input:focus {
    background: rgba(255, 255, 255, 0.07);
}

/* Custom Gradients and Glows */
.text-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient-primary {
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient-secondary {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-indigo {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.dark .glow-indigo {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Utilities */
.blur-backdrop-sm {
    backdrop-filter: blur(4px);
}

/* Animate-in items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
