/* ===== DEMO DATA BANNER ===== */
.demo-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
}

.demo-banner-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.demo-banner-text {
    font-size: 0.88rem;
    color: #92400E;
    line-height: 1.4;
}

.demo-banner-text strong {
    color: #78350F;
}

.demo-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #F59E0B;
    vertical-align: middle;
    margin-left: 0.35rem;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-body {
    background: var(--cream);
}

.dashboard-main {
    padding: 6rem 2rem 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== SUMMARY CARDS ===== */
.dash-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid rgba(26, 46, 26, 0.06);
    transition: all 0.2s;
}

.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 46, 26, 0.06);
}

.dash-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.dash-card-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    letter-spacing: -0.5px;
}

.dash-card-sub {
    font-size: 0.8rem;
    color: var(--slate);
    margin-top: 0.25rem;
}

.dash-card.total { border-left: 4px solid var(--forest); }
.dash-card.verified { border-left: 4px solid var(--sage); }
.dash-card.progress { border-left: 4px solid var(--gold); }
.dash-card.remaining { border-left: 4px solid var(--clay); }

/* ===== PROGRESS BAR ===== */
.dash-progress-section {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 46, 26, 0.06);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
}

.progress-pct {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage);
}

.progress-bar-wrapper {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 24px;
    background: var(--sand);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.progress-fill {
    height: 100%;
    transition: width 0.8s ease-out;
}

.verified-fill {
    background: var(--sage);
    border-radius: 12px 0 0 12px;
}

.progress-fill-ip {
    background: var(--gold);
}

.progress-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--slate);
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.verified-dot { background: var(--sage); }
.progress-dot { background: var(--gold); }
.remaining-dot { background: var(--sand); }

/* ===== COUNTY MAP GRID ===== */
.dash-map-section {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 46, 26, 0.06);
}

.map-header {
    margin-bottom: 1.25rem;
}

.map-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.map-header p {
    font-size: 0.85rem;
    color: var(--slate);
}

.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}

.county-tile {
    aspect-ratio: 1.2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    cursor: default;
    transition: all 0.15s;
    position: relative;
}

.county-tile:hover {
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 4px 16px rgba(26, 46, 26, 0.15);
}

.county-tile.verified {
    background: rgba(107, 143, 107, 0.15);
    border: 1px solid rgba(107, 143, 107, 0.3);
}

.county-tile.in_progress {
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.county-tile.pending {
    background: rgba(232, 220, 200, 0.6);
    border: 1px solid rgba(196, 168, 130, 0.3);
}

.tile-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--forest);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.tile-pct {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.county-tile.verified .tile-pct { color: var(--sage); }
.county-tile.in_progress .tile-pct { color: var(--gold); }
.county-tile.pending .tile-pct { color: var(--slate); }

/* Tooltip */
.county-tile .tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest);
    color: var(--white);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.72rem;
    white-space: nowrap;
    z-index: 50;
    line-height: 1.5;
    pointer-events: none;
}

.county-tile:hover .tooltip {
    display: block;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--forest);
}

/* ===== TABLE SECTION ===== */
.dash-table-section {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid rgba(26, 46, 26, 0.06);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.table-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
}

.table-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(26, 46, 26, 0.12);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover {
    border-color: var(--forest);
    color: var(--forest);
}

.filter-btn.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.table-search input {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(26, 46, 26, 0.12);
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--forest);
    background: var(--white);
    width: 200px;
    transition: border-color 0.2s;
}

.table-search input:focus {
    outline: none;
    border-color: var(--sage);
}

.table-wrapper {
    overflow-x: auto;
}

.county-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.county-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate);
    border-bottom: 2px solid var(--sand);
    white-space: nowrap;
}

.county-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.county-table th.sortable:hover {
    color: var(--forest);
}

.county-table th.sorted-asc::after { content: ' \2191'; }
.county-table th.sorted-desc::after { content: ' \2193'; }

.county-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(26, 46, 26, 0.04);
    color: var(--forest);
    white-space: nowrap;
}

.county-table tbody tr:hover {
    background: rgba(107, 143, 107, 0.04);
}

.county-name {
    font-weight: 600;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.verified {
    background: rgba(107, 143, 107, 0.12);
    color: var(--sage);
}

.status-badge.in_progress {
    background: rgba(201, 168, 76, 0.12);
    color: var(--amber);
}

.status-badge.pending {
    background: rgba(74, 85, 104, 0.08);
    color: var(--slate);
}

/* Freshness badges */
.freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.freshness-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.freshness-badge.fresh .freshness-dot { background: var(--green); }
.freshness-badge.recent .freshness-dot { background: var(--gold); }
.freshness-badge.stale .freshness-dot { background: var(--red); }

/* Rate bar in table */
.rate-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-bar {
    width: 60px;
    height: 6px;
    background: var(--sand);
    border-radius: 3px;
    overflow: hidden;
}

.rate-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--sage);
    transition: width 0.5s;
}

.rate-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    min-width: 42px;
}

/* ===== DASHBOARD FOOTER ===== */
.dash-footer {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dash-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 5rem 1rem 2rem;
    }

    .dash-summary {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-filters {
        flex-wrap: wrap;
    }

    .table-search input {
        width: 100%;
    }

    .county-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}
