/* ===== CSS VARIABLES ===== */
:root {
    --neon-blue: #00e0ff;
    --neon-purple: #9d4edd;
    --neon-pink: #ff2e9e;
    --neon-green: #00ff88;
    --dark-bg: #0a0a0f;
    --dark-surface: #121218;
    --dark-card: #1a1a23;
    --glass: rgba(255, 255, 255, 0.05);
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --neon-yellow: #ffcc00;
    --neon-orange: #ff6b00;
    --neon-teal: #00d4aa;
    --neon-red: #ff4757;
    --glass-dark: rgba(0, 0, 0, 0.3);
}

* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ===== BASE & BACKGROUND STYLES ===== */
body {
    background: #0a0a0f;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    position: relative;
}

.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: -20;
    background:
            radial-gradient(circle at 20% 30%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(0, 224, 255, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 40% 50%, rgba(255, 46, 158, 0.08) 0%, transparent 40%),
            linear-gradient(135deg, #05050a 0%, #0a0a1a 100%);
}

.starfield {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -15;
    background-image:
            radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
            radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
            radial-gradient(3px 3px at 60% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 100%),
            radial-gradient(3px 3px at 80% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
            radial-gradient(4px 4px at 30% 80%, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    background-size: 500px 500px;
    animation: twinkle 5s infinite alternate;
}

.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-elements div {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.bg-1 {
    width: 300px;
    height: 300px;
    background: var(--neon-blue);
    top: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.bg-2 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    bottom: 10%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.bg-3 {
    width: 200px;
    height: 200px;
    background: var(--neon-pink);
    top: 50%;
    left: 80%;
    animation: pulse 4s infinite;
}

/* ===== CUSTOM SCROLLBARS ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00e0ff 0%, #9d4edd 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
    background: rgba(26, 26, 35, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.super-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(0, 224, 255, 0.1),
            inset 0 0 40px rgba(255, 255, 255, 0.05);
}

.ultra-glass {
    background: rgba(26, 26, 35, 0.3);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ===== NEON GLOW BORDERS ===== */
.neon-border-blue,
.glow-border-blue {
    border: 1px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.2), inset 0 0 20px rgba(0, 224, 255, 0.1);
}

.neon-border-purple,
.glow-border-purple {
    border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2), inset 0 0 20px rgba(157, 78, 221, 0.1);
}

.neon-border-pink,
.glow-border-pink {
    border: 1px solid rgba(255, 46, 158, 0.3);
    box-shadow: 0 0 15px rgba(255, 46, 158, 0.2), inset 0 0 20px rgba(255, 46, 158, 0.1);
}

.neon-border-green,
.glow-border-green {
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2), inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.neon-border-yellow,
.glow-border-yellow {
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2), inset 0 0 20px rgba(255, 204, 0, 0.1);
}

.neon-border-orange,
.glow-border-orange {
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2), inset 0 0 20px rgba(255, 107, 0, 0.1);
}

.glow-border-blue {
    box-shadow:
            0 0 25px rgba(0, 224, 255, 0.25),
            inset 0 0 35px rgba(0, 224, 255, 0.1),
            0 0 50px rgba(0, 224, 255, 0.15);
}

.glow-border-purple {
    box-shadow:
            0 0 25px rgba(157, 78, 221, 0.25),
            inset 0 0 35px rgba(157, 78, 221, 0.1),
            0 0 50px rgba(157, 78, 221, 0.15);
}

.glow-border-pink {
    box-shadow:
            0 0 25px rgba(255, 46, 158, 0.25),
            inset 0 0 35px rgba(255, 46, 158, 0.1),
            0 0 50px rgba(255, 46, 158, 0.15);
}

.glow-border-green {
    box-shadow:
            0 0 25px rgba(0, 255, 136, 0.25),
            inset 0 0 35px rgba(0, 255, 136, 0.1),
            0 0 50px rgba(0, 255, 136, 0.15);
}

.border-neon-blue { border-color: var(--neon-blue); }
.border-neon-purple { border-color: var(--neon-purple); }
.border-neon-pink { border-color: var(--neon-pink); }
.border-neon-green { border-color: var(--neon-green); }
.border-neon-blue\/20 { border-color: rgba(0, 224, 255, 0.2); }

/* ===== HOVER EFFECTS ===== */
.neon-hover-blue:hover {
    border-color: rgba(0, 224, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.4), inset 0 0 30px rgba(0, 224, 255, 0.15);
}

.neon-hover-purple:hover {
    border-color: rgba(157, 78, 221, 0.6);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4), inset 0 0 30px rgba(157, 78, 221, 0.15);
}

.neon-hover-pink:hover {
    border-color: rgba(255, 46, 158, 0.6);
    box-shadow: 0 0 20px rgba(255, 46, 158, 0.4), inset 0 0 30px rgba(255, 46, 158, 0.15);
}

.neon-hover-green:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 30px rgba(0, 255, 136, 0.15);
}

.neon-hover-yellow:hover {
    border-color: rgba(255, 204, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4), inset 0 0 30px rgba(255, 204, 0, 0.15);
}

.neon-hover-orange:hover {
    border-color: rgba(255, 107, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4), inset 0 0 30px rgba(255, 107, 0, 0.15);
}

.glass-hover {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-hover:hover {
    transform: translateY(-8px);
    box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.6),
            0 0 100px rgba(0, 224, 255, 0.25),
            inset 0 0 50px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.05);
}

/* ===== CARD SHINE EFFECT ===== */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.card-shine:hover::before {
    left: 100%;
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.shine:hover::before {
    left: 100%;
}

/* ===== GRADIENT TEXT EFFECTS ===== */
.gradient-text-blue,
.text-gradient-blue {
    background: linear-gradient(90deg, #00e0ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.5);
}

.gradient-text-purple,
.text-gradient-purple {
    background: linear-gradient(90deg, #9d4edd 0%, #ff2e9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.gradient-text-green,
.text-gradient-green {
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.gradient-text-yellow,
.text-gradient-yellow {
    background: linear-gradient(90deg, #ffcc00 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.gradient-text-pink,
.text-gradient-pink {
    background: linear-gradient(90deg, #ff2e9e 0%, #ff0080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 46, 158, 0.5);
}

.gradient-text-orange,
.text-gradient-orange {
    background: linear-gradient(90deg, #ff6b00 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.text-neon-blue { color: var(--neon-blue); }
.text-neon-purple { color: var(--neon-purple); }
.text-neon-pink { color: var(--neon-pink); }
.text-neon-green { color: var(--neon-green); }
.neon-red { color: #ff3e3e; }
.neon-orange { color: #ff9f0a; }

/* ===== BUTTON UTILITIES ===== */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-hover:hover::after {
    transform: translateX(100%);
}

.btn-transition {
    transition: all 0.3s ease;
}

.btn-transition:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== ICON EFFECTS ===== */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px currentColor);
}

.icon-glow {
    position: relative;
    z-index: 1;
}

.icon-glow::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: currentColor;
    filter: blur(12px);
    opacity: 0.25;
    border-radius: 50%;
    z-index: -1;
}

/* ===== ANIMATIONS ===== */
@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-slower {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -15px) scale(1.1); }
    66% { transform: translate(-10px, 10px) scale(0.9); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.float {
    animation: float 5s ease-in-out infinite;
}

.pulse {
    animation: pulse 3s infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.3s ease-in forwards;
}

.toast-icon-pulse {
    animation: pulseIcon 2s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-slower {
    animation: float-slower 8s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-shimmer {
    animation: shimmer 3s linear infinite;
}

.animate-neon-flicker {
    animation: neon-flicker 5s ease-in-out infinite;
}

.animate-rainbow {
    animation: rainbow 5s linear infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

/* ===== BACKGROUND ELEMENTS & SPECIAL EFFECTS ===== */
.rainbow-bg {
    background: linear-gradient(135deg,
    #00e0ff 0%,
    #9d4edd 20%,
    #ff2e9e 40%,
    #ffcc00 60%,
    #00ff88 80%,
    #00e5d4 100%);
    background-size: 400% 400%;
    animation: rainbow 8s ease infinite;
}

.bg-gradient-blue { background: linear-gradient(135deg, var(--neon-blue), #0066ff); }
.bg-gradient-purple { background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink)); }
.bg-gradient-green { background: linear-gradient(135deg, var(--neon-green), #00cc77); }

.bg-neon-blue { background-color: var(--neon-blue); }
.bg-neon-purple { background-color: var(--neon-purple); }
.bg-neon-pink { background-color: var(--neon-pink); }
.bg-neon-green { background-color: var(--neon-green); }
.bg-neon-blue\/5 { background-color: rgba(0, 224, 255, 0.05); }

/* ===== LAYOUT UTILITIES ===== */
.content-z {
    position: relative;
    z-index: 2;
}

.h-275px { height: 275px; }
.h-450px { height: 450px; }
.h-300px { height: 300px; }
.h-250px { height: 250px; }

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ===== SIDEBAR STYLES ===== */
#sidebar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
}

#sidebar nav {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== NOTIFICATION BADGE ===== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MOBILE MENU BACKDROP ===== */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .h-450px {
        height: auto;
        min-height: 450px;
    }

    .h-300px {
        height: auto;
        min-height: 300px;
    }
}

@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }

    .show-on-desktop {
        display: block !important;
    }

    .section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

@media (max-width: 1023px) {
    body {
        overflow-x: hidden;
    }

    #sidebar {
        width: 85vw;
        max-width: 320px;
    }

    #sidebar nav {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #sidebar .row-start-3 {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

@media (max-height: 600px) and (max-width: 1023px) {
    #sidebar {
        grid-template-rows: auto 1fr auto;
    }

    #sidebar nav .space-y-3 > * {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #sidebar nav .w-14, #sidebar nav .h-14 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    #sidebar nav .text-lg {
        font-size: 0.875rem !important;
    }

    #sidebar nav .text-xs {
        font-size: 0.625rem !important;
    }

    #sidebar .row-start-3 .h-4 {
        height: 0.5rem !important;
    }
}

@media (min-height: 601px) and (max-height: 700px) {
    #sidebar nav .space-y-3 > * {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    #sidebar .row-start-3 .h-4 {
        height: 1rem !important;
    }
}

@media (min-height: 701px) {
    #sidebar .row-start-3 .h-4 {
        height: 1.5rem !important;
    }
}

@supports (padding: max(0px)) {
    #sidebar {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}



