/* style.css */

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}
:root {
    --bg: #0f1117;
    --surface: #161b26;
    --surface2: #1e2535;
    --surface3: #252d3d;
    --border: #2a3347;
    --border2: #334060;
    --accent: #0078d4;
    --accent-hover: #106ebe;
    --accent-glow: rgba(0, 120, 212, 0.18);
    --green: #16c784;
    --green-dim: rgba(22, 199, 132, 0.12);
    --red: #ea3943;
    --red-dim: rgba(234, 57, 67, 0.12);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --text: #e8ecf0;
    --text2: #9aa5b8;
    --text3: #5c6a80;
    --font: 'Calibri', Calibri, system-ui, sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --sidebar: 240px;
    --topbar: 56px;
}
html {
    font-family: var(--font);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased
}
body {
    min-height: 100vh;
    overflow-x: hidden
}
input,
select,
textarea,
button {
    font-family: var(--font);
    font-size: 15px
}
a {
    color: var(--accent);
    text-decoration: none
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}
::-webkit-scrollbar-track {
    background: var(--bg)
}
::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px
}

/* ── Login Page ─────────────────────────────────────────────── */
#login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 120, 212, 0.08), transparent);
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px
}
.login-brand .logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    color: #fff;
    flex-shrink: 0;
}
.login-brand .brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text)
}
.login-brand .brand-sub {
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 1px;
    text-transform: uppercase
}
.login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px
}
.login-sub {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 28px
}
.form-field {
    margin-bottom: 16px
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 6px
}
.form-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow)
}
.form-input::placeholder {
    color: var(--text3)
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.btn-primary {
    background: var(--accent);
    color: #fff
}
.btn-primary:hover {
    background: var(--accent-hover)
}
.btn-primary:active {
    transform: scale(0.98)
}
.btn-secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border)
}
.btn-secondary:hover {
    background: var(--surface3);
    border-color: var(--border2)
}
.btn-danger {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(234, 57, 67, 0.25)
}
.btn-danger:hover {
    background: rgba(234, 57, 67, 0.2)
}
.btn-success {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(22, 199, 132, 0.25)
}
.btn-success:hover {
    background: rgba(22, 199, 132, 0.2)
}
.btn-block {
    width: 100%
}
.btn-sm {
    padding: 6px 12px;
    font-size: 13px
}
.btn-xs {
    padding: 4px 9px;
    font-size: 12px
}
.login-err {
    background: var(--red-dim);
    border: 1px solid rgba(234, 57, 67, 0.3);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--red);
    margin-bottom: 16px;
    display: none;
}

/* ── App Shell ──────────────────────────────────────────────── */
#app {
    display: none;
    min-height: 100vh;
    flex-direction: column
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    height: var(--topbar);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.topbar .logo {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: var(--sidebar);
    padding-right: 20px
}
.topbar .logo .logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}
.topbar .logo .brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px
}
.topbar .logo .tag {
    font-size: 10px;
    color: var(--text3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1px
}
.topbar-spacer {
    flex: 1
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer
}
.topbar-user .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.topbar-user .uname {
    font-size: 13px;
    font-weight: 600;
    color: var(--text)
}
.topbar-user .urole {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.5px
}
.burger {
    display: none;
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
}
.burger:hover {
    background: var(--surface2);
    color: var(--text)
}
.topbar-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: var(--topbar);
    left: 0;
    bottom: 0;
    width: var(--sidebar);
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 90;
    transition: transform 0.25s;
    padding: 16px 0;
}
.sidebar.collapsed {
    transform: translateX(-100%)
}
.nav-section {
    padding: 0 12px;
    margin-bottom: 4px
}
.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text3);
    padding: 8px 10px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.12s;
    margin-bottom: 2px;
}
.nav-item:hover {
    background: var(--surface2);
    color: var(--text)
}
.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 600
}
.nav-item .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7
}
.nav-item.active .icon {
    opacity: 1
}
.nav-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 12px
}
.nav-item-logout {
    color: var(--red) !important
}
.nav-item-logout:hover {
    background: var(--red-dim) !important;
    color: var(--red) !important
}

/* ── Main content ───────────────────────────────────────────── */
.main {
    margin-left: var(--sidebar);
    margin-top: var(--topbar);
    min-height: calc(100vh - var(--topbar));
    padding: 28px;
    transition: margin-left 0.25s;
}
.main.full {
    margin-left: 0
}

/* ── Page header ────────────────────────────────────────────── */
.page-header {
    margin-bottom: 24px
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px
}
.page-sub {
    font-size: 13px;
    color: var(--text2)
}
.page-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap
}

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card.green::before {
    background: var(--green)
}
.stat-card.red::before {
    background: var(--red)
}
.stat-card.amber::before {
    background: var(--amber)
}
.stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 10px
}
.stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--text)
}
.stat-value.pos {
    color: var(--green)
}
.stat-value.neg {
    color: var(--red)
}
.stat-meta {
    font-size: 12px;
    color: var(--text3)
}

/* ── Chart cards ────────────────────────────────────────────── */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin-bottom: 24px
}
.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.chart-card.wide {
    grid-column: 1/-1
}
.chart-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text);
    margin-bottom: 4px
}
.chart-sub {
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 18px
}
.chart-wrap {
    position: relative;
    height: 220px
}
.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important
}

/* ── Table ──────────────────────────────────────────────────── */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.table-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text)
}
.table-header-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px
}
.table-scroll {
    overflow-x: auto
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}
th {
    padding: 10px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text3);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: middle
}
tr:last-child td {
    border-bottom: none
}
tr:hover td {
    background: var(--surface2)
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-buy {
    background: var(--green-dim);
    color: var(--green)
}
.badge-sell {
    background: var(--red-dim);
    color: var(--red)
}
.badge-open {
    background: var(--amber-dim);
    color: var(--amber)
}
.badge-closed {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text3)
}
.badge-admin {
    background: rgba(0, 120, 212, 0.12);
    color: var(--accent)
}
.badge-user {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text3)
}
.badge-blocked {
    background: var(--red-dim);
    color: var(--red)
}
.pnl-pos {
    color: var(--green);
    font-weight: 600
}
.pnl-neg {
    color: var(--red);
    font-weight: 600
}
.pnl-zero {
    color: var(--text3)
}
.td-actions {
    display: flex;
    gap: 6px;
    align-items: center
}
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text3);
    font-size: 13px;
}
.empty-state .empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.4
}
.empty-state strong {
    display: block;
    font-size: 15px;
    color: var(--text2);
    margin-bottom: 6px
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.modal-overlay.open {
    display: flex
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.18s ease;
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px)
    }
    to {
        opacity: 1;
        transform: none
    }
}
.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text)
}
.modal-close {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.modal-close:hover {
    background: var(--surface2);
    color: var(--text)
}
.modal-body {
    padding: 24px
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}
.form-select {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa5b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
}
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow)
}
.form-select option {
    background: var(--surface2)
}
.form-hint {
    font-size: 11px;
    color: var(--text3);
    margin-top: 5px
}
.form-err {
    font-size: 12px;
    color: var(--red);
    margin-top: 5px;
    display: none
}

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none
}
.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 18px;
    font-size: 13px;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.2s ease;
    max-width: 320px;
    pointer-events: all;
}
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px)
    }
    to {
        opacity: 1;
        transform: none
    }
}
.toast.success {
    border-color: rgba(22, 199, 132, 0.4)
}
.toast.error {
    border-color: rgba(234, 57, 67, 0.4)
}
.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0
}
.toast.success .toast-dot {
    background: var(--green)
}
.toast.error .toast-dot {
    background: var(--red)
}
.toast.info .toast-dot {
    background: var(--accent)
}

/* ── Admin panels ───────────────────────────────────────────── */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px
}
.tab-bar {
    display: flex;
    gap: 2px;
    background: var(--surface2);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto
}
.tab-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    background: none;
    transition: all 0.12s;
    white-space: nowrap;
}
.tab-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2)
}
.tab-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04)
}

/* ── Toggle ─────────────────────────────────────────────────── */
.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px
}
.toggle input {
    opacity: 0;
    width: 0;
    position: absolute
}
.toggle-track {
    width: 36px;
    height: 20px;
    background: var(--surface3);
    border-radius: 10px;
    transition: background 0.2s;
    border: 1px solid var(--border);
}
.toggle input:checked~.toggle-track {
    background: var(--accent);
    border-color: var(--accent)
}
.toggle-thumb {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle input:checked~.toggle-track .toggle-thumb {
    transform: translate(16px, -50%)
}

/* ── Progress bar ───────────────────────────────────────────── */
.progress-wrap {
    background: var(--surface2);
    border-radius: 3px;
    height: 6px;
    overflow: hidden
}
.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s
}
.progress-bar.green {
    background: var(--green)
}
.progress-bar.red {
    background: var(--red)
}

/* ── Loader ─────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ── Win rate ring ──────────────────────────────────────────── */
.ring-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap
}
.ring {
    width: 90px;
    height: 90px;
    flex-shrink: 0
}
.ring-stats {
    flex: 1;
    min-width: 120px
}
.ring-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px
}
.ring-row:last-child {
    border-bottom: none
}
.ring-row .label {
    color: var(--text2)
}
.ring-row .val {
    font-weight: 600;
    color: var(--text)
}

/* ── User select card ───────────────────────────────────────── */
.user-select-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.user-select-bar label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text3)
}
.user-select-bar .form-select {
    max-width: 260px;
    background: var(--surface2)
}

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:900px) {
    :root {
        --sidebar: 220px
    }
    .chart-grid {
        grid-template-columns: 1fr
    }
    .chart-card.wide {
        grid-column: auto
    }
}
@media(max-width:680px) {
    :root {
        --sidebar: 260px
    }
    .main {
        margin-left: 0;
        padding: 18px
    }
    .sidebar {
        transform: translateX(-100%)
    }
    .sidebar.open {
        transform: translateX(0)
    }
    .burger {
        display: flex
    }
    .topbar .logo {
        min-width: auto
    }
    .stat-grid {
        grid-template-columns: 1fr 1fr
    }
    .form-row {
        grid-template-columns: 1fr
    }
    .modal {
        max-width: 100%
    }
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px
    }
    .toast {
        max-width: 100%
    }
}
@media(max-width:400px) {
    .stat-grid {
        grid-template-columns: 1fr
    }
    .login-card {
        padding: 28px 24px
    }
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
    display: none
}
.section.active {
    display: block
}

/* ── Sidebar overlay ────────────────────────────────────────── */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 89;
}
#sidebar-overlay.visible {
    display: block
}