/* ── Top Attorneys — App Styles ── */

:root {
    --cv-navy:  #1a2b4a;
    --cv-gold:  #c8a84b;
    --cv-light: #f7f8fa;
}

body {
    background: var(--cv-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.925rem;
}

/* Navbar */
.navbar.bg-dark  { background-color: var(--cv-navy) !important; }
.navbar-brand    { padding-top: .25rem; padding-bottom: .25rem; }
.navbar-brand img { display: block; }

/* Cards */
.card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,.07);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
    padding: 1rem 1.25rem .75rem;
}

/* Stat cards */
.stat-card .display-6 { font-size: 2rem; font-weight: 700; color: var(--cv-navy); }
.stat-card .label     { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #888; }

/* Profile completeness bar */
.completeness-bar .progress { height: 10px; border-radius: 5px; }

/* Tables */
.table thead th {
    background: var(--cv-navy);
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: none;
}
.table tbody tr:hover { background: rgba(200,168,75,.06); }

/* Badges */
.badge.status-active            { background: #198754; }
.badge.status-pending           { background: #fd7e14; }
.badge.status-hidden            { background: #6c757d; }
.badge.status-inactive          { background: #adb5bd; color: #333; }
.badge.status-deletion_requested{ background: #dc3545; }
.badge.status-merged            { background: #0d6efd; }

/* Headshot */
.headshot {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.headshot-lg {
    width: 140px; height: 140px;
}

/* Voting card */
.vote-card { cursor: pointer; transition: box-shadow .15s, border-color .15s; border: 2px solid transparent; }
.vote-card:hover  { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.vote-card.selected { border-color: var(--cv-gold); background: #fffaf0; }

/* Forms */
.form-label { font-weight: 500; font-size: .85rem; }
.required::after { content: ' *'; color: #dc3545; }

/* ── Admin Search Overlay (Cmd+F) ─────────────────────────────── */
.aso-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 11vh;
    backdrop-filter: blur(2px);
}
.aso-card {
    background: #fff;
    border-radius: .875rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: asoIn .12s ease-out;
}
@keyframes asoIn {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1);   }
}
.aso-header {
    display: flex;
    align-items: center;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid #e9ecef;
    gap: .65rem;
}
.aso-icon  { font-size: 1.1rem; color: #aaa; flex-shrink: 0; }
.aso-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #1a1a1a;
}
.aso-esc-hint {
    font-size: .68rem;
    padding: .15rem .4rem;
    border-radius: .25rem;
    background: #f4f4f5;
    color: #999;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.aso-scope-bar {
    display: flex;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.aso-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    padding: .22rem .65rem;
    border-radius: 2rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background .1s, color .1s, border-color .1s;
}
.aso-chip:hover  { background: #f0f2f5; }
.aso-chip.active { background: var(--cv-navy); color: #fff; border-color: var(--cv-navy); }
.aso-results {
    max-height: 360px;
    overflow-y: auto;
}
.aso-section-header {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #bbb;
    padding: .7rem 1.1rem .25rem;
}
.aso-result {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 1.1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
    transition: background .08s;
}
.aso-result:hover,
.aso-result.selected { background: #eef2ff; text-decoration: none; color: inherit; }
.aso-name {
    font-weight: 500;
    font-size: .9rem;
    color: #1a1a1a;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aso-meta {
    font-size: .77rem;
    color: #999;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aso-badge {
    font-size: .67rem;
    padding: .15rem .42rem;
    border-radius: .25rem;
    background: #e9ecef;
    color: #555;
    white-space: nowrap;
    font-weight: 500;
}
.aso-empty {
    padding: 1.75rem 1.1rem;
    color: #bbb;
    text-align: center;
    font-size: .88rem;
}
.aso-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .45rem 1.1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    font-size: .71rem;
    color: #bbb;
}
.aso-footer kbd {
    font-size: .67rem;
    padding: .1rem .3rem;
    border-radius: .2rem;
    background: #ededef;
    border: 1px solid #d0d0d0;
    color: #666;
}

/* Sidebar (admin) */
.sidebar { min-width: 220px; background: #fff; border-right: 1px solid #e9ecef; min-height: calc(100vh - 56px); }
.sidebar .nav-link { color: #444; border-radius: .4rem; padding: .45rem .9rem; font-size: .88rem; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(26,43,74,.07); color: var(--cv-navy); font-weight: 600; }
.sidebar .nav-link i { width: 1.4em; }
