:root {
    --accent: #00ffff;
    --accent2: #7f5af0;
    --bg: #0a0a0f;
    --surface: #13131a;
    --surface2: #1c1c27;
    --text: #e0e0e0;
    --muted: #6b7280;
}


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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links a {
    color: var(--text) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e94560;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.header p {
    color: #aaa;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.visualizer-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.data-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 280px;
}

.bar {
    background: #39A6A3;
    border-radius: 4px 4px 0 0;
    width: 28px;
    transition: height 0.1s ease, background-color 0.2s;
    display: flex;
    flex-direction: column;
    /* Stack label above bar content */
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.bar_id {
    position: absolute;
    top: -20px;
    /* Float above the bar */
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    width: 100%;
    pointer-events: none;
    white-space: nowrap;
}

.stats-container {
    text-align: center;
    min-height: 28px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #aaa;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s, background-color 0.3s;
    font-family: 'Inter', sans-serif;
}

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

.btn:not(:disabled):hover {
    transform: translateY(-2px);
}

.btn:not(:disabled):active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.range {
    color: #FFE268;
    font-weight: 600;
    margin-left: 8px;
}