/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.dark .glass-panel {
    background: rgba(16, 23, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Animation */
.animated-bg {
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ambient Glow System */
.ambient-glow-base {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.glow-tl { /* Dashboard Top Left */
    top: -10%; 
    left: -10%; 
    width: 50vw; 
    height: 50vh;
    background: radial-gradient(circle, rgba(60, 131, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
}

.glow-br { /* Dashboard Bottom Right */
    bottom: -10%; 
    right: -10%; 
    width: 40vw; 
    height: 40vh;
    background: radial-gradient(circle, rgba(60, 131, 246, 0.1) 0%, rgba(255,255,255,0) 70%);
}

.glow-center { /* 404 Center */
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 80vw; 
    height: 80vh;
    background: radial-gradient(circle, rgba(60, 131, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
}

/* Submenu Transitions */
.submenu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.submenu.open {
    max-height: 500px;
    opacity: 1;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.floating {
    animation: float 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.8);
}
