/* Import design system */
@import './design-system.css';

body {
    background: var(--surface-background);
    min-height: 100vh;
}

:root[data-theme="dark"] body {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme-mode="user"]) body {
        background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    }
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.visualizer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-5);
}

/* Navigation header for visualizer */
.visualizer-nav {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visualizer-nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.visualizer-nav-logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-decoration: none;
}

.header {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-lg);
}

.header h1 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
}

.header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.breadcrumb {
    margin-top: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.loading,
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-8);
}

.empty-state {
    border: 1px dashed rgba(102, 126, 234, 0.24);
    border-radius: var(--radius-lg);
}

.error {
    background: var(--error-light);
    color: var(--error-strong);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin: var(--space-3) 0;
}

.auto-scroll {
    scroll-behavior: smooth;
}

.toggle-button {
    width: auto;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

.toggle-button.active {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: var(--text-3xl);
    }
    
    .visualizer-container {
        padding: var(--space-4);
    }
    
    .visualizer-nav {
        padding: var(--space-3) var(--space-4);
    }
}



