:root {
    color-scheme: dark;
    --bg: #050a15;
    --panel: rgba(10, 20, 40, 0.75);
    --panel-strong: rgba(15, 30, 60, 0.9);
    --panel-soft: rgba(5, 15, 30, 0.6);
    --text: #e0f2ff;
    --text-muted: #a0b4d0;
    --accent: #E4007C;
    --accent-2: #00e468;
    --accent-soft: rgba(228, 0, 124, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --glow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --font-heading: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    background: radial-gradient(circle at 24% 12%, #081225 0%, #050a15 50%, var(--bg) 100%),
        radial-gradient(circle at 82% 18%, rgba(0, 228, 104, 0.05), transparent 45%),
        radial-gradient(circle at 50% 78%, rgba(228, 0, 124, 0.05), transparent 40%),
        #02040a;
    color: var(--text);
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(228, 0, 124, 0.05), rgba(0, 228, 104, 0.05));
    mix-blend-mode: color-dodge;
    opacity: 0.3;
    z-index: 0;
}

.panel-toggle {
    width: 38px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(228, 0, 124, 0.12), rgba(5, 10, 25, 0.95));
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    z-index: 3;
    backdrop-filter: blur(15px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
}

.panel-toggle:hover {
    background: linear-gradient(180deg, rgba(228, 0, 124, 0.2), rgba(10, 20, 45, 0.98));
    color: var(--text);
}

.panel-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.left-panel {
    width: 230px;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.95) 0%, rgba(5, 10, 25, 0.9) 100%);
    color: var(--text);
    padding: 30px 22px 26px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    gap: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

body.is-collapsed .left-panel {
    width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
}

body.is-collapsed .left-panel * {
    opacity: 0;
}

.left-panel h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text);
    text-transform: none;
    line-height: 1.2;
}

.left-panel nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.left-panel nav li {
    margin-bottom: 10px;
}

.left-panel nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.02);
}

.left-panel nav a:hover {
    background-color: rgba(0, 228, 104, 0.1);
    padding-left: 18px;
    color: var(--accent-2);
    border-color: rgba(0, 228, 104, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.left-panel nav a.active {
    background: linear-gradient(110deg, rgba(228, 0, 124, 0.25), rgba(0, 228, 104, 0.1));
    color: #ffffff;
    padding-left: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.main-content {
    flex: 1;
    background-color: #02050a;
    overflow: hidden;
    position: relative;
}

.main-hidden {
    display: none;
}

#fishtank {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: radial-gradient(circle at 30% 20%, #0d2a5a 0%, #061530 60%, #020814 100%),
                radial-gradient(circle at 80% 80%, rgba(0, 228, 104, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(228, 0, 124, 0.1) 0%, transparent 40%),
                linear-gradient(125deg, transparent 48.5%, rgba(255, 255, 255, 0.25) 49.9%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.25) 50.1%, transparent 51.5%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 300% 300%;
    z-index: 0;
    filter: saturate(1.3) brightness(1.1);
}

#fishtank::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 100%),
                linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.08) 44.2%, transparent 44.4%);
    pointer-events: none;
    z-index: 1;
}

.info-panel {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    max-width: none;
    width: calc(100% - 56px);
    padding: 30px 40px;
    border-radius: 20px;
    background: rgba(10, 25, 50, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(25px);
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.info-panel.is-hidden {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    pointer-events: none;
}

.info-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
    background: rgba(0, 228, 104, 0.1);
    padding: 5px 12px 4px;
    border-radius: 999px;
    border: 1px solid rgba(0, 228, 104, 0.12);
    font-weight: 600;
}

.info-title {
    margin: 0 0 16px;
    font-size: 2.2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    text-align: center;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.info-body {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-body a:hover {
    color: #ff5eb0;
    border-bottom-color: var(--accent);
}

.info-body strong {
    color: #ffffff;
    font-weight: 600;
}

.card {
    background: rgba(15, 30, 60, 0.4);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

header h1 {
    color: #ffffff;
    margin-top: 0;
}

p {
    line-height: 1.8;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(242, 217, 234, 0.14);
    }

    .panel-toggle {
        width: 100%;
        height: 48px;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(242, 217, 234, 0.12);
        border-bottom: 1px solid rgba(242, 217, 234, 0.12);
    }

    body.is-collapsed .left-panel {
        max-height: 0;
        padding: 0;
        border-bottom: none;
    }

    .main-content {
        min-height: 70vh;
        overflow: auto;
    }

    .info-panel {
        position: relative;
        top: 0;
        left: auto;
        right: auto;
        width: calc(100% - 32px);
        margin: 16px;
        max-height: calc(100vh - 32px);
        overflow: auto;
    }
}