@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg-base: #0f0f23;
    --indigo: #6366f1;
    --purple: #8b5cf6;
    --text-primary: #fff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: Inter, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1e3a5f 100%);
    animation: gradientShift 20s ease infinite
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px
}

.header {
    text-align: center;
    margin-bottom: 40px
}

.title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px
}

.subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 300
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.editor-panel,
.viz-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px
}

.editor-panel h2,
.viz-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 20px
}

#markdownInput {
    width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
    resize: none
}

#mindMap {
    width: 100%;
    height: 500px
}

@media (max-width:968px) {
    .main-grid {
        grid-template-columns: 1fr
    }
}