/* ==========================================================================
   Leads & BA Report — premium visual layer
   Scoped overrides only. Adds to static/css/style.css, never replaces it.
   Loaded on: templates/leads/index.html, templates/leads/ba_report.html,
              templates/leads/search.html, templates/auth/signin.html,
              templates/auth/signup.html
   ========================================================================== */

/* ---- Headings everywhere this file is loaded ---- */
h1, h2, h3 {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
}

/* ---- Top navigation bar (base.html, shared across all pages) ---- */
.topbar {
    padding: 14px 32px;
    border-bottom: 1px solid #E7E5E1;
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
}
.brand img {
    height: 56px;
    width: auto;
}
.brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.brand-subtitle {
    font-family: 'Inter', sans-serif;
    color: #9aa3ad;
}
.topbar-user {
    font-weight: 600;
    color: #3b434d;
}
.topbar .btn-secondary {
    border: 1.5px solid #E7E5E1;
    border-radius: 999px;
    font-weight: 600;
    background: #fff;
}
.topbar .btn-secondary:hover {
    border-color: #1A1A1A;
    color: #1A1A1A;
}
.topbar .btn-primary {
    border-radius: 999px;
    background: #1A1A1A;
    box-shadow: none;
}
.topbar .btn-primary:hover { background: #2b2b2b; }

/* ---- Auth pages (sign in / sign up) ---- */
.auth-wrap { background: transparent; }
.auth-card {
    border: 1px solid #E7E5E1;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.05);
}
.auth-card h1 { font-size: 30px; }
.auth-sub { color: #6B6F75; }
.text-input {
    border: 1px solid #E7E5E1;
    border-radius: 10px;
    background: #FAFAF9;
}
.text-input:focus {
    border-color: #7B3FE4;
    background: #fff;
}
.auth-switch a { color: #7B3FE4; font-weight: 600; }
.field-hint { color: #9aa3ad; }

/* ---- Leads search page ---- */
.search-form-card {
    border: 1px solid #E7E5E1;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.05);
}
.combo-field {
    border: 1px solid #E7E5E1;
    border-radius: 10px;
    background: #fff;
}
.section-label {
    font-weight: 700;
    color: #1A1A1A;
}

/* ---- Typography ---- */
.page h1, .page h2, .page h3 {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
}
.page-header h1 { font-size: clamp(26px, 3.2vw, 36px); }

/* ---- Leads list page ---- */
.stat-pill {
    background: #F1E9FB;
    border: none;
    border-radius: 999px;
    color: #5a2bb0;
    font-weight: 600;
}

.filter-bar {
    background: transparent;
    border: 1.5px dashed #D8D4CC;
    border-radius: 16px;
    box-shadow: none;
    padding: 16px 22px;
}
.filter-bar select,
.filter-bar input[type="text"] {
    border: 1px solid #E7E5E1;
    border-radius: 10px;
    background: #fff;
}

.table-card {
    border: 1px solid #E7E5E1;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.05);
}
.table-scroll { max-height: 860px; }
#leads-table th {
    background: #F6F2FC;
    color: #5a2bb0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1.5px solid #E7D9F7;
    padding: 15px 16px;
}
#leads-table td {
    padding: 16px;
    font-size: 14px;
}
#leads-table tbody tr:hover { background: #FAFAF9; }

/* Give the leads table a bit more room to breathe */
.page:has(#leads-table) { max-width: 1360px; }

.sector-tag {
    background: #F1E9FB;
    color: #5a2bb0;
    border-radius: 999px;
    font-weight: 600;
}
.status-badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
}
.btn-primary {
    background: #1A1A1A;
    box-shadow: none;
}
.btn-primary:hover { background: #2b2b2b; }
.btn-secondary {
    background: #fff;
    border: 1.5px solid #E7E5E1;
    color: #1A1A1A;
}
.btn-mini {
    border-radius: 8px;
    background: #1A1A1A;
    color: #fff;
    border: none;
}
.btn-mini:hover { background: #2b2b2b; }

.ba-report-link { color: #C7318F; font-weight: 600; }
.back-link:hover { color: #7B3FE4; }

/* ---- BA report page ---- */
.report-header-card {
    border: 1px solid #E7E5E1;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.05);
}
.lead-avatar {
    background: #1A1A1A;
    color: #fff;
    font-family: 'Fraunces', serif;
    border: 1.5px solid #F2A93B;
}
.lead-meta-pills .sector-tag {
    background: #F1E9FB;
    color: #5a2bb0;
    border-radius: 999px;
    font-weight: 600;
}
.meta-pill {
    background: #F6F7F8;
    border: 1px solid #E7E5E1;
    border-radius: 999px;
}
.notice-card { border-radius: 16px; }

.score-grid { gap: 14px; }
.score-card {
    background: #fff;
    border: none;
    border-top: 4px solid var(--purple);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.05);
}
.score-card:nth-child(2) { border-top-color: var(--teal); }
.score-card:nth-child(3) { border-top-color: var(--orange); }
.score-card:nth-child(4) {
    border-top-color: var(--magenta);
    background: #1A1A1A;
}
.score-card:nth-child(4) .score-title { color: #fff; }
.score-card:nth-child(4) .score-value { color: #fff !important; }
.score-card:nth-child(4) .score-desc { color: #c4cad1; }
.score-value { font-family: 'Fraunces', serif; }

.focus-tag-badge {
    background: #F1E9FB;
    color: #5a2bb0;
    border: none;
    border-radius: 999px;
}

.report-tabs-nav { border-bottom: 1px solid #E7E5E1; }
.report-tab-btn.active {
    border-bottom: 2.5px solid #7B3FE4;
    color: #1A1A1A;
}
.report-tab-badge {
    background: #F1E9FB;
    color: #5a2bb0;
}

.section-card {
    border: 1px solid #E7E5E1;
    border-radius: 16px;
    box-shadow: none;
}
.insight-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    border-left: 4px solid #F2A93B;
    color: #1A1A1A;
}

.comp-badge {
    background: #F1E9FB;
    color: #5a2bb0;
    border-radius: 999px;
}
.education-badge {
    background: #E1F2F0;
    color: #126b65;
    border-radius: 999px;
}
.post-stat-pill {
    background: #F6F7F8;
    border-radius: 999px;
}

.msg-box {
    border: none;
    border-left: 4px solid #7B3FE4;
    border-radius: 4px 12px 12px 4px;
    background: #FAFAF9;
}
.gmail-btn {
    background: #1A1A1A;
    color: #fff;
    border-radius: 999px;
    border: none;
}
.copy-btn {
    border-radius: 999px;
    border: 1px solid #E7E5E1;
    background: #fff;
}
.badge-ai {
    background: #F1E9FB;
    color: #5a2bb0;
    border-radius: 999px;
}

.reachout-recipient-bar {
    background: #1A1A1A;
    border-radius: 14px;
    border: none;
}
.reachout-recipient-bar,
.reachout-recipient-bar strong,
.reachout-recipient-input-group span {
    color: #fff;
}
.reachout-email-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 999px;
}
.reachout-email-input::placeholder { color: #9aa3ad; }

.ba-outreach-pill {
    border-radius: 999px;
    font-weight: 700;
}