@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #020617;
    /* Slate 950 */
    --surface-dark: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --primary: #38bdf8;
    /* Sky 400 */
    --accent: #818cf8;
    /* Indigo 400 */
    --accent-glow: #c084fc;
    /* Purple 400 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    perspective: 1000px;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.08), transparent 25%);
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* --- Aurora Borealis Orbs --- */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #818cf8, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #c084fc, transparent 70%);
    top: 40%;
    left: 40%;
    animation-duration: 35s;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

/* --- Dark Glassmorphism --- */
.glass-panel {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Floating Nav / Sidebar */
.floating-nav {
    margin: 1rem;
    height: calc(100vh - 2rem);
}

/* Glass Card Interactions */
.glass-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* Sidebar Links */
.sidebar-link {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

/* App Switcher */
.app-tab {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}

.app-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.app-tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
    color: white;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}