@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #ede9f7; /* Light Lavender */
    overflow-x: hidden;
}

/* Subtle Fixed Background Pattern (Formal & Clean) */
.formal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: radial-gradient(circle at top right, #d8d0f0 0%, transparent 50%),
                radial-gradient(circle at bottom left, #e5dff5 0%, transparent 50%);
    background-color: #ede9f7;
}

/* Custom Scrollbar for Sidebar & Main Content */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Sidebar - Vibrant Violet */
aside#sidebar-menu {
    background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 40%, #5b21b6 75%, #4c1d95 100%) !important;
    border-right: 1px solid rgba(167, 139, 250, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 4px 0 30px rgba(109, 40, 217, 0.4) !important;
}

aside#sidebar-menu .text-slate-600,
aside#sidebar-menu span.font-medium {
    color: rgba(255, 255, 255, 0.92) !important;
}
aside#sidebar-menu .text-slate-400 {
    color: rgba(255, 255, 255, 0.5) !important;
}
aside#sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}
aside#sidebar-menu a:hover span,
aside#sidebar-menu a:hover .text-slate-400 {
    color: #ffffff !important;
}
aside#sidebar-menu .text-red-500 {
    color: #fecdd3 !important;
}
aside#sidebar-menu a:has(.fa-arrow-right-from-bracket):hover {
    background: rgba(255, 80, 80, 0.2) !important;
}
aside#sidebar-menu p.text-xs.font-bold {
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.1em;
}
aside#sidebar-menu .border-b {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
aside#sidebar-menu i {
    color: rgba(255, 255, 255, 0.7) !important;
}
aside#sidebar-menu a:hover i {
    color: #ffffff !important;
}

/* Top Header - Medium Purple */
header.glass-panel {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%) !important;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.2) !important;
    border: 1px solid rgba(167, 139, 250, 0.4) !important;
}

/* Page Transitions */
.fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active Menu Style */
aside#sidebar-menu a.active-menu {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 4px 0 0 #ffffff !important;
    border-radius: 0.75rem !important;
}
aside#sidebar-menu a.active-menu span.font-medium,
aside#sidebar-menu a.active-menu i {
    color: #ffffff !important;
    font-weight: 700 !important;
}
