/* 
 * LLM Location Extraction Visualizer
 * Design: Dark tech aesthetic with cyan accents + Light mode (Fontshare-inspired)
 * Inspired by: Terminal interfaces, data visualization dashboards, fontshare.com
 */

/* Satoshi Font */
@font-face {
    font-family: 'Satoshi';
    src: url('/static/fonts/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/static/fonts/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-VariableItalic.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
    font-style: italic;
}

:root {
    /* Core palette - Deep space with electric cyan (Dark Mode) */
    --bg-primary: #0a0e14;
    --bg-secondary: #0d1219;
    --bg-tertiary: #111821;
    --bg-panel: #0f141c;
    --bg-elevated: #151c27;
    
    /* Accent colors */
    --accent-primary: #00e5ff;
    --accent-secondary: #00b8d4;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-subtle: rgba(0, 229, 255, 0.1);
    
    /* Success/Error states */
    --success: #00e676;
    --success-glow: rgba(0, 230, 118, 0.3);
    --error: #ff5252;
    --warning: #ffab40;
    
    /* Text hierarchy */
    --text-primary: #e8edf4;
    --text-secondary: #8b98a9;
    --text-muted: #5a6778;
    
    /* Borders & lines */
    --border-color: rgba(0, 229, 255, 0.15);
    --border-subtle: rgba(139, 152, 169, 0.1);
    
    /* Grid background */
    --grid-color: rgba(0, 229, 255, 0.03);
    
    /* Typography */
    --font-display: 'Satoshi', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Animations */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Light Mode - Fontshare-inspired clean aesthetic */
[data-theme="light"] {
    /* Warm off-white backgrounds */
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --bg-panel: #ffffff;
    --bg-elevated: #ffffff;
    
    /* Accent - Deep charcoal with warm undertones */
    --accent-primary: #1a1a1a;
    --accent-secondary: #333333;
    --accent-glow: rgba(26, 26, 26, 0.15);
    --accent-subtle: rgba(26, 26, 26, 0.05);
    
    /* Success/Error states - Softer versions */
    --success: #2e7d32;
    --success-glow: rgba(46, 125, 50, 0.15);
    --error: #c62828;
    --warning: #f57c00;
    
    /* Text hierarchy - Rich blacks and grays */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #757575;
    
    /* Borders - Subtle and clean */
    --border-color: rgba(0, 0, 0, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.06);
    
    /* Grid background */
    --grid-color: rgba(0, 0, 0, 0.02);
}

/* Light mode specific overrides */
[data-theme="light"] .grid-bg {
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
}

[data-theme="light"] .particle {
    background: var(--accent-primary);
    opacity: 0.1;
}

[data-theme="light"] .logo-title {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .extract-btn {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #ffffff;
}

[data-theme="light"] .extract-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .result-card {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .result-card::before {
    background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-secondary));
    opacity: 0.1;
}

[data-theme="light"] .location-highlight {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .confidence-fill {
    background: linear-gradient(90deg, var(--warning), var(--success));
}

[data-theme="light"] .panel {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .panel::before {
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.2;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: block;
}

/* Main Layout */
.main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

/* Panels */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.panel-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.panel-icon {
    color: var(--accent-primary);
    font-size: 1.2em;
}

/* Input Tabs */
.input-tabs {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
}

.tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--bg-elevated);
    color: var(--accent-primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.text-input,
.select-input,
.textarea-input {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.textarea-input {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.textarea-input::placeholder {
    color: var(--text-muted);
}

.select-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b98a9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.char-count {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Extract Button */
.extract-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.extract-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.extract-btn:hover::before {
    transform: translateX(100%);
}

.extract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.extract-btn:active {
    transform: translateY(0);
}

.extract-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.extract-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Fetch Status */
.fetch-status {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: var(--space-lg);
    display: none;
}

.fetch-status.visible {
    display: block;
}

.fetch-status.loading {
    color: var(--accent-primary);
}

.fetch-status.error {
    color: var(--error);
}

.fetch-status.success {
    color: var(--success);
}

/* Model Badge */
.model-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.model-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* Visualization States */
.viz-state {
    min-height: 400px;
}

.viz-state.hidden {
    display: none;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state p {
    max-width: 280px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.empty-state strong {
    color: var(--accent-primary);
}

/* Processing State */
.processing-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Scan Display */
.scan-display {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--space-md);
    max-height: 200px;
    overflow: hidden;
}

.scan-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(180deg, transparent, var(--accent-glow), transparent);
    pointer-events: none;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Processing Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    opacity: 0.4;
    transition: var(--transition-base);
}

.step.active {
    opacity: 1;
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
}

.step.complete {
    opacity: 1;
}

.step-indicator {
    width: 24px;
    height: 24px;
    position: relative;
}

.step-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    display: none;
}

.step.active .step-spinner {
    display: block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.step-check {
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}

.step.complete .step-check {
    display: flex;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.step.complete .step-spinner {
    display: none;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.step-detail {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.step-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    min-width: 60px;
    text-align: right;
}

/* Thinking Stream */
.thinking-stream {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.thinking-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.thinking-icon {
    color: var(--accent-primary);
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.thinking-content {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 80px;
}

.thinking-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-primary);
    margin-left: 2px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Result State */
#viz-result {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Result Card */
.result-card {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    animation: resultReveal 0.6s ease;
}

@keyframes resultReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-secondary));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.result-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.confidence-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.confidence-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--success));
    border-radius: 3px;
    transition: width 1s ease;
}

.confidence-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

.result-location {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.result-location.no-location {
    color: var(--text-muted);
    font-style: italic;
}

.result-meta {
    display: flex;
    gap: var(--space-xl);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* Highlighted Text */
.highlighted-text-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.highlighted-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.highlight-legend {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.legend-marker {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.highlighted-text {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.location-highlight {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: highlightPulse 1.5s ease infinite;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
    50% { box-shadow: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-subtle); }
}

/* Explanation Card */
.explanation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.explanation-content {
    padding: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

.footer-divider {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: var(--space-md);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}
