/* ═══════════════════════════════════════════════════════════════════════════
   Upwork Bot — Custom styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --sidebar-bg: #1a1d23;
    --sidebar-w: 260px;
    --sidebar-hover: #2c303a;
    --sidebar-active: #0d6efd;
    --topbar-h: 60px;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform .25s ease;
}

.sidebar-brand {
    padding: 1.15rem 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.65);
    border-radius: .375rem;
    padding: .55rem .85rem;
    margin: 1px 0;
    font-size: .875rem;
    transition: all .15s;
}
.sidebar .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}
.sidebar .nav-link.active {
    color: #fff;
    background: var(--sidebar-active);
}

.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,.08);
    margin: .75rem 0;
}

.sidebar-heading {
    color: rgba(255,255,255,.35);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .85rem;
    list-style: none;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.55);
}

/* ── Main content ─────────────────────────────────────────────────────────── */

.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    background: #f5f6fa;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    min-height: var(--topbar-h);
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */

.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: transform .15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { font-size: .8rem; color: #6b7280; }

/* ── Status badges ────────────────────────────────────────────────────────── */

.badge-connected { background: #059669; }
.badge-disconnected { background: #dc2626; }
.badge-pending { background: #d97706; }

/* ── Proposal row ─────────────────────────────────────────────────────────── */

.proposal-row { cursor: pointer; transition: background .1s; }
.proposal-row:hover { background: #f0f4ff; }
.proposal-detail { display: none; background: #f8fafc; }
.proposal-detail.show { display: table-row; }
.proposal-text { white-space: pre-wrap; font-size: .85rem; max-height: 300px; overflow-y: auto; }

/* ── Score badge ──────────────────────────────────────────────────────────── */

.score-high { color: #059669; font-weight: 700; }
.score-mid  { color: #d97706; font-weight: 700; }
.score-low  { color: #dc2626; font-weight: 700; }

/* ── Auth pages ───────────────────────────────────────────────────────────── */

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

/* ── Cards in settings pages ──────────────────────────────────────────────── */

.settings-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}
