:root {
    --bg-app: #090d16;
    --bg-accent-1: rgba(30, 41, 59, 0.4);
    --border-ui: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-heading: #ffffff;
    --bg-viewer: #020617;
    --bg-markdown: #090d16;
    --glow-opacity: 0.15;
    --card-glass: rgba(15, 23, 42, 0.75);
}

html[data-theme="light"] {
    --bg-app: #f8fafc;
    --bg-accent-1: #ffffff;
    --border-ui: rgba(15, 23, 42, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --bg-viewer: #f1f5f9;
    --bg-markdown: #ffffff;
    --glow-opacity: 0.08;
    --card-glass: rgba(255, 255, 255, 0.85);
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.luxury-font {
    font-family: 'Outfit', sans-serif;
}

.glass {
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-ui);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* Audio Wave animation */
.wave-bar {
    width: 4px;
    height: 18px;
    background-color: #10b981;
    border-radius: 4px;
    animation: bounce 1.2s ease-in-out infinite alternate;
}

.wave-bar.paused {
    animation-play-state: paused;
    height: 8px;
}

@keyframes bounce {
    from {
        height: 6px;
        transform: scaleY(0.6);
    }

    to {
        height: 38px;
        transform: scaleY(1.2);
    }
}

/* Markdown styling overrides */
.markdown-body {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--text-heading);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.markdown-body h1 {
    font-size: 1.875rem;
    border-bottom: 1px solid var(--border-ui);
    padding-bottom: 0.4em;
}

.markdown-body h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid var(--border-ui);
    padding-bottom: 0.3em;
}

.markdown-body h3 {
    font-size: 1.15rem;
}

.markdown-body p {
    margin-bottom: 1.25em;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.markdown-body ul {
    list-style-type: disc;
}

.markdown-body ol {
    list-style-type: decimal;
}

.markdown-body li {
    margin-bottom: 0.4em;
}

.markdown-body blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 1.5em 0;
}

.markdown-body code {
    background-color: var(--bg-accent-1);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.85em;
    font-family: monospace;
}

.markdown-body pre code {
    background-color: transparent;
    padding: 0;
}