/* ─────────────────────────────────────────────────────────────
   RealtorSentry Admin Styles
   Copyright (c) 2026 Crocker Technology Group
   ───────────────────────────────────────────────────────────── */

:root {
    --rs-dark: #1a1a2e;
    --rs-gold: #c9a84c;
    --rs-gold-light: #e6d5a0;
    --rs-bg: #f5f6fa;
    --rs-card: #ffffff;
    --rs-border: #e2e5ec;
    --rs-text: #2c3e50;
    --rs-muted: #7f8c9b;
}

body {
    background: var(--rs-bg);
    color: var(--rs-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
}

/* ── Top nav ─────────────────────────────────────────────────── */
.rs-topbar {
    background: var(--rs-dark);
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.rs-topbar .brand {
    color: var(--rs-gold);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    margin-right: 32px;
}
.rs-topbar .nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 16px 14px;
    font-size: 14px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.rs-topbar .nav-links a:hover,
.rs-topbar .nav-links a.active {
    color: #fff;
    border-bottom-color: var(--rs-gold);
}

/* ── Content area ────────────────────────────────────────────── */
.rs-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.rs-card {
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.rs-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--rs-text);
}

/* ── Stat cards ──────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--rs-dark);
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--rs-muted);
    margin-top: 4px;
}

/* ── Tables ──────────────────────────────────────────────────── */
.rs-table {
    width: 100%;
    border-collapse: collapse;
}
.rs-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rs-muted);
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--rs-border);
}
.rs-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}
.rs-table tr:hover td {
    background: #fafbfc;
}

/* ── Forms ────────────────────────────────────────────────────── */
.rs-form .form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--rs-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge { font-weight: 600; font-size: 12px; }

/* ── Score display ───────────────────────────────────────────── */
.score-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}
.score-hot  { background: #E8F5E9; color: #1B5E20; }
.score-warm { background: #FFF3CD; color: #856404; }
.score-cold { background: #FCE4EC; color: #880E4F; }

/* ── Question builder ────────────────────────────────────────── */
.question-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}
.question-row .drag-handle {
    cursor: grab;
    color: var(--rs-muted);
}
.question-row .q-text {
    flex: 1;
}
.question-row .q-weight {
    width: 60px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--rs-muted);
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ── Lead detail ─────────────────────────────────────────────── */
.qa-answer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.qa-answer-row:last-child { border-bottom: 0; }
.qa-answer-row .qa-q { color: var(--rs-muted); font-size: 13px; flex: 1; }
.qa-answer-row .qa-a { font-weight: 600; }
.qa-answer-row .qa-pts {
    min-width: 50px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}
