body {
    background: radial-gradient(circle at top, #2b1b10 0%, #050608 60%, #000000 100%);
    color: #f5e9d7;
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

#aurora-ldx {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(18, 12, 8, 0.95);
    border-bottom: 1px solid rgba(255,200,140,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.brand-title {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd9a0;
}

.unit-id {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7c58a;
}

.main-layout {
    flex: 1;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(18, 12, 8, 0.95);
    border-radius: 12px;
    box-shadow:
        0 0 40px rgba(0,0,0,0.8),
        0 0 80px rgba(255,180,90,0.15);
    border: 1px solid rgba(255,200,140,0.25);
}

h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #f7c58a;
}

h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #f3b870;
}

.deck-section {
    margin-bottom: 24px;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 220px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 6px;
    background: linear-gradient(to bottom, #1a120c, #120b07);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.7);
}

ul li {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #f5e9d7;
    border-bottom: 1px solid rgba(255,200,140,0.08);
}

ul li:nth-child(odd) {
    background: rgba(255,200,140,0.03);
}

ul li:nth-child(even) {
    background: rgba(255,200,140,0.01);
}

ul li:hover {
    background: rgba(255,200,140,0.12);
}

.selected-track {
    background: rgba(255,200,140,0.25) !important;
    color: #1a120c;
    font-weight: 600;
}

button {
    background: radial-gradient(circle at top, #3b2a1a 0%, #1b120b 70%);
    color: #f5e9d7;
    border: 1px solid rgba(255,200,140,0.4);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.7),
        inset 0 0 6px rgba(255,200,140,0.25);
}

button:hover {
    background: radial-gradient(circle at top, #4a3320 0%, #24160d 70%);
}

button:active {
    box-shadow:
        0 1px 2px rgba(0,0,0,0.8),
        inset 0 0 10px rgba(255,200,140,0.4);
}

input[type="range"] {
    flex: 1;
    accent-color: #f3b870;
}

label {
    font-size: 0.85rem;
    color: #f0ddc4;
}

.waveform-container {
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(to right, #120b07, #1b120c);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.8);
}

#waveform {
    width: 100%;
    display: block;
    background: radial-gradient(circle at center, #26160d 0%, #0a0503 70%);
    border-radius: 6px;
    border: 1px solid rgba(255,200,140,0.3);
}

/* Bottom bar */

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(10, 6, 4, 0.98);
    border-top: 1px solid rgba(255,200,140,0.25);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.7);
}

.wifi-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #f5e9d7;
}

.wifi-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wifi-dots {
    color: #f3b870;
}

.bottom-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.nav-item {
    color: #f5e9d7;
    text-decoration: none;
}

.nav-item:hover {
    color: #ffd9a0;
}

.nav-sep {
    color: rgba(255,200,140,0.5);
}
#right-panel {
    position: absolute;
    right: 20px;
    top: 120px;
    width: 260px;
    background: rgba(18, 12, 8, 0.95);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,200,140,0.25);
}

#info-center h3 {
    margin-top: 0;
    color: #f7c58a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#info-center p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #f5e9d7;
}

#visual-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.half-moon {
    width: 100%;
    padding: 10px;
    border-radius: 999px 999px 0 0;
    background: radial-gradient(circle at top, #3b2a1a 0%, #1b120b 70%);
    color: #f5e9d7;
    border: 1px solid rgba(255,200,140,0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.7),
        inset 0 0 6px rgba(255,200,140,0.25);
}

.half-moon:hover {
    background: radial-gradient(circle at top, #4a3320 0%, #24160d 70%);
}
@media (max-width: 900px) {
    #aurora-ldx {
        padding: 8px;
    }

    .main-layout {
        flex-direction: column;
    }

    .deck-section {
        width: 100%;
        margin-bottom: 16px;
    }

    #right-panel {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .waveform-container canvas {
        width: 100%;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .top-bar,
    .bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .row.controls button {
        flex: 1 1 45%;
        margin-bottom: 4px;
    }

    input[type="range"] {
        width: 100%;
    }
}
/* ================================
   STATIC HEADER (fits text in 50px)
   ================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;               /* set bar height */
    background: rgba(10, 10, 20, 0.95);
    border-bottom: 1px solid rgba(255,200,140,0.25);
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;        /* vertically centers text */
    padding: 0 15px;            /* reduce side padding */
    line-height: 20px;          /* ensures text fits */
    font-size: 16px;            /* optional: reduce text size */
}

/* Push content down so header doesn't overlap */
body {
    padding-top: 50px;          /* match header height */
}


/* ================================
   STATIC FOOTER (fits text in 50px)
   ================================ */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;               /* set bar height */
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid rgba(255,200,140,0.25);
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;        /* vertically centers text */
    padding: 0 15px;            /* reduce side padding */
    line-height: 30px;          /* ensures text fits */
    font-size: 15px;            /* optional: reduce text size */
}

/* Push content up so footer doesn't overlap */
body {
    padding-bottom: 50px;       /* match footer height */
}
/* Prevent horizontal overflow in header & footer */
.top-bar,
.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    overflow: hidden;          /* hides anything that tries to escape */
    white-space: nowrap;       /* keeps text on one line */
    text-overflow: ellipsis;   /* adds "..." if text is too long */
    box-sizing: border-box;    /* prevents padding from pushing content out */

    min-width: 0;              /* allows flex items to shrink */
}

/* Allow inner nav/text to shrink instead of overflow */
.top-bar * ,
.bottom-bar * {
    min-width: 0;              /* critical: prevents overflow */
    flex-shrink: 1;            /* allows items to compress */
}
