/* static/styles.css — gym2x design system (modernized 2026-07-11) */

:root {
    --bg: #0b0e14;
    --surface: #131824;
    --surface-2: #1a2130;
    --border: #242e42;
    --text: #e8edf5;
    --muted: #93a0b4;
    --accent: #4f8cff;
    --accent-hover: #3b76e8;
    --success: #2fbf71;
    --warning: #f5a623;
    --danger: #e5484d;
    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(79, 140, 255, .10), transparent 60%),
        radial-gradient(900px 420px at -10% 110%, rgba(47, 191, 113, .07), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: .1px;
    scrollbar-color: var(--surface-2) var(--bg);
    scrollbar-width: thin;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.3px; }

/* --- Navbar ---------------------------------------------------------------- */
.navbar {
    background: rgba(11, 14, 20, .82) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
.navbar .nav-link {
    color: var(--muted) !important;
    border-radius: 8px;
    padding: .45rem .8rem !important;
    transition: color .15s, background .15s;
}
.navbar .nav-link:hover { color: var(--text) !important; background: var(--surface-2); }
.navbar .nav-link.active { color: var(--text) !important; background: var(--surface-2); }
.navbar .nav-link i { margin-right: .35rem; opacity: .8; }

/* --- Surfaces ---------------------------------------------------------------- */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.list-group-item {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}
.alert { border-radius: 12px; border: 1px solid var(--border); }

/* --- Tables ---------------------------------------------------------------- */
.table { --bs-table-bg: transparent; }
.table-dark {
    --bs-table-bg: var(--surface);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: var(--surface-2);
    --bs-table-hover-bg: var(--surface-2);
    border-radius: var(--radius);
    overflow: hidden;
}
.table-dark.table-bordered > :not(caption) > * > * { border-color: var(--border); }
.table-dark thead th {
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.table-active { --bs-table-bg-state: rgba(79, 140, 255, .10); }

/* --- Forms ---------------------------------------------------------------- */
.form-control, .form-select, textarea {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 10px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 .2rem rgba(79, 140, 255, .18) !important;
}
.form-control::placeholder { color: var(--muted); opacity: .7; }
.form-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.form-text { color: var(--muted) !important; }
input:disabled.form-control { opacity: .55; }

/* --- Buttons ---------------------------------------------------------------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-outline-light, .btn-outline-primary, .btn-outline-warning, .btn-outline-danger {
    border-radius: 10px;
}
.badge { border-radius: 8px; font-weight: 600; }

/* --- Auth card ---------------------------------------------------------------- */
.auth-card {
    max-width: 420px;
    margin: 8vh auto 0;
}
.auth-card .brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Music player (legacy screens) ------------------------------------------- */
.playlist img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 6px;
}
.playlist li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
}
.playlist li:hover { background: var(--surface-2); }
.playlist ul { list-style: none; padding-left: 0; }

#musicVideo {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    background-color: black;
    border-radius: var(--radius);
}

.progress-bar-container {
    width: 100%;
    background-color: var(--surface-2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
    height: 12px;
}
.progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--success);
    transition: width 1s linear;
    border-radius: 6px;
}

/* --- Dash simulator dropdown ---------------------------------------------- */
#gpx-dropdown {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid var(--border);
}
.VirtualizedSelectOption { background-color: #000000; color: #FFFFFF; }
.VirtualizedSelectFocusedOption { background-color: #333333; color: #FFFFFF; }
