﻿:root {
    --background: #090B25;
    --sidebar: #0D1030;
    --panel: #14183D;
    --panel-light: #202451;
    --border: #343568;
    --blue: #00E5FF;
    --light-blue: #7DF4FF;
    --white: #F4F0FF;
    --muted: #A5A6C9;
    --green: #50F5C0;
    --orange: #FF9B54;

    --neon-pink: #FF36A5;
    --neon-purple: #873BFF;
    --neon-cyan: #00E5FF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--white);
    font-family: Arial, sans-serif;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 30px;
}

.brand-icon {
    background: #173C65;
    border: 1px solid var(--blue);
    border-radius: 9px;
    padding: 12px 7px;
    color: var(--light-blue);
    font-weight: bold;
    font-size: 15px;
}

.brand h2 {
    font-size: 19px;
    margin: 0 0 5px;
}

.brand span {
    color: var(--light-blue);
    font-size: 9px;
    letter-spacing: 1px;
}

.menu-title {
    color: var(--muted);
    font-size: 11px;
    font-weight: bold;
    padding: 10px;
    letter-spacing: 1px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border-radius: 7px;
    color: #B7C9DC;
    text-decoration: none;
    font-size: 14px;
    transition: .2s;
}

.nav-item span {
    font-size: 19px;
    width: 20px;
}

.nav-item:hover,
.nav-item.active {
    background: #173C65;
    color: var(--light-blue);
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 10px 0;
    color: var(--green);
    font-size: 12px;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 7px;
}

.version {
    color: var(--muted);
    font-size: 10px;
    margin-top: 10px;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 26px;
    margin: 0 0 7px;
}

.topbar p,
.muted {
    color: var(--muted);
    font-size: 12px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.lang.selected {
    background: #173C65;
    color: var(--light-blue);
}

.admin {
    background: #173C65;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 11px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.status-card,
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.status-card {
    padding: 20px;
}

.card-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
}

.card-value {
    font-size: 21px;
    font-weight: bold;
    margin: 15px 0 8px;
}

.card-description {
    color: var(--muted);
    font-size: 11px;
}

.online {
    color: var(--green) !important;
}

.warning {
    color: var(--orange);
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.panel-header h2 {
    font-size: 15px;
    margin: 0;
}

.tag {
    color: var(--light-blue);
    background: #173C65;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 10px;
}

.track-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.artwork {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #173C65, #071426);
    border: 1px solid var(--blue);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-blue);
    font-size: 24px;
    font-weight: bold;
}

.artwork small {
    font-size: 11px;
}

.track-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.track-info p {
    color: var(--light-blue);
    font-size: 13px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.player-controls button {
    background: #17416B;
    border: 1px solid var(--border);
    color: white;
    padding: 11px 15px;
    border-radius: 6px;
    opacity: .55;
    cursor: not-allowed;
}

.player-controls .muted {
    margin-left: 5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.info-row span {
    color: var(--muted);
}

.activity-panel {
    margin-bottom: 20px;
}

.activity-message {
    padding: 11px 0;
    color: #B7C9DC;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 10px;
    padding: 15px;
}

@media (max-width: 1000px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        width: 65px;
        padding: 15px 8px;
    }

    .brand {
        padding: 0 0 25px;
    }

    .brand h2,
    .brand span,
    .menu-title,
    .nav-item:not(.active),
    .sidebar-footer,
    .nav-item.active {
        font-size: 0;
    }

    .brand-icon {
        font-size: 12px;
    }

    .nav-item {
        justify-content: center;
        padding: 12px 4px;
    }

    .nav-item span {
        font-size: 20px;
    }

    .main-content {
        padding: 18px 12px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .status-card {
        padding: 13px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .admin {
        display: none;
    }

    .track-area {
        gap: 12px;
    }

    .artwork {
        width: 75px;
        height: 75px;
    }
}

/* WB81Radio - Miami Vice / Synthwave theme */
body {
    background-image:
        radial-gradient(ellipse at 75% 0%, rgba(135,59,255,.16), transparent 42%),
        radial-gradient(ellipse at 15% 85%, rgba(255,54,165,.08), transparent 38%);
    color: var(--white);
}

.brand-icon {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 18px rgba(255,54,165,.35);
}

.nav-item.active {
    border-color: rgba(0,229,255,.45);
    box-shadow: inset 3px 0 0 var(--neon-cyan), 0 0 14px rgba(0,229,255,.10);
}

.nav-item:hover {
    color: var(--neon-cyan);
    background: rgba(0,229,255,.07);
}

.lang.selected {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.player-controls button {
    transition: .2s ease;
}

.player-controls button:hover {
    box-shadow: 0 0 16px rgba(0,229,255,.35);
    transform: translateY(-2px);
}

.player-controls button.stop,
.warning {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.online {
    color: var(--green);
    text-shadow: 0 0 9px rgba(80,245,192,.4);
}

.panel, .card {
    border-color: rgba(135,59,255,.25);
}

h1, h2, h3 {
    text-shadow: 0 0 14px rgba(0,229,255,.12);
}

/* Official WB81Radio Control Center logo */
.brand {
    justify-content: center;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* LOGIN - MIAMI VICE / SYNTHWAVE */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(135,59,255,.25), transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(255,54,165,.15), transparent 50%),
        #090B25;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 35px;
    background: rgba(20,24,61,.94);
    border: 1px solid rgba(0,229,255,.45);
    border-radius: 20px;
    box-shadow: 0 0 35px rgba(0,229,255,.15),
                0 0 65px rgba(255,54,165,.10);
}

.login-logo img {
    display: block;
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.login-heading {
    text-align: center;
    margin-bottom: 28px;
}

.login-heading h1 {
    color: var(--neon-cyan);
}

.login-heading p {
    color: var(--muted);
}

.login-container label {
    display: block;
    margin: 16px 0 7px;
    color: var(--light-blue);
    font-size: 13px;
}

.login-container input {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #090B25;
    color: var(--white);
    outline: none;
    box-sizing: border-box;
}

.login-container input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0,229,255,.2);
}

.login-container button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.login-container button:hover {
    box-shadow: 0 0 20px rgba(255,54,165,.4);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.login-error {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--neon-pink);
    border-radius: 8px;
    color: var(--neon-pink);
    background: rgba(255,54,165,.08);
    font-size: 13px;
}

.login-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
}

/* MFA - Miami Vice */
.mfa-instructions {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.mfa-instructions h3 {
    color: var(--neon-cyan);
    margin-top: 20px;
}

.mfa-qr {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    background: #FFFFFF;
    border-radius: 12px;
}

.mfa-qr img {
    display: block;
    width: 190px;
    height: 190px;
}

.login-container input {
    text-align: center;
    letter-spacing: 3px;
}

/* Aggregated web audience summary */
.analytics-panel {
    margin-top: 24px;
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0 24px;
}

.analytics-subtitle {
    margin: 18px 0 8px;
    color: var(--light-blue);
}

.analytics-days .info-row {
    padding: 9px 0;
}


/* Live RadioBOSS artwork in the Now Playing panel */
.artwork {
    position: relative;
    overflow: hidden;
    flex: 0 0 100px;
}

.artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.artwork-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #173C65, #071426);
    color: var(--light-blue);
}


/* Manual RadioBOSS metadata source selector (does not control broadcast playback) */
.source-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin: 14px 0 18px;
    padding: 11px 13px;
    border: 1px solid rgba(0,229,255,.22);
    border-radius: 9px;
    background: rgba(9,11,37,.42);
}
.source-selector label {
    color: var(--light-blue);
    font-size: 12px;
    font-weight: 600;
}
.source-selector select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #090B25;
    color: var(--white);
    font: inherit;
}
.source-selector select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0,229,255,.18);
}
.source-status {
    color: var(--green);
    font-size: 11px;
}
.source-status.error {
    color: var(--neon-pink);
}
@media (max-width: 700px) {
    .source-selector { align-items: stretch; flex-direction: column; }
    .source-selector select { width: 100%; min-width: 0; box-sizing: border-box; }
}
