* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #222;
    margin: 0;
    padding: 20px;
}
.container { max-width: 1100px; margin: 0 auto; }
h1 { margin-bottom: 12px; }

.header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.stat-card {
    background: #f0f2f5;
    border-radius: 6px;
    padding: 10px 16px;
    text-align: center;
    min-width: 100px;
}
.stat-value { display: block; font-size: 22px; font-weight: 700; }
.stat-label { display: block; font-size: 12px; color: #666; text-transform: uppercase; }

.last-refresh { font-size: 13px; color: #666; }
.error-text { color: #c0392b; }

button {
    background: #2a78d6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
button:hover { background: #1e5fb0; }
button:disabled { background: #aaa; cursor: not-allowed; }

#refreshStatus { margin-left: 10px; font-size: 13px; color: #555; }

.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.filters input, .filters select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.export-link {
    margin-left: auto;
    color: #2a78d6;
    text-decoration: none;
    font-size: 14px;
}
.export-link:hover { text-decoration: underline; }

.suppressions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.suppressions-table th, .suppressions-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.suppressions-table th {
    background: #fafafa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: #666;
}
.suppressions-table .empty { text-align: center; color: #999; padding: 30px; }

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}
.badge-bounce { background: #e34948; }
.badge-complaint { background: #eb6834; }
.badge-unsubscribe { background: #2a78d6; }
.badge-manual { background: #888; }

.verdict-LEGITIMATE { background: #1baf7a; }
.verdict-REMOVE_CANDIDATE { background: #e34948; }

.tier-hard { background: #e34948; }
.tier-soft { background: #2a78d6; }
.tier-unclear { background: #eda100; }
.tier-yes { background: #1baf7a; }
.tier-no { background: #999; }
.tier-maybe { background: #eda100; }

.criteria-details {
    background: white;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.criteria-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2a78d6;
    font-size: 14px;
}
.criteria-details summary:hover { text-decoration: underline; }
.criteria-table td:first-child { max-width: 320px; }
.verdict-ANALYST_REVIEW { background: #eda100; }

.groups-table .count-cell { font-weight: 700; font-size: 16px; }
.groups-table code { background: #f0f2f5; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.btn-danger {
    background: #e34948;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.btn-danger:hover { background: #c0392b; }

.bulk-bar {
    background: #2a2a2a;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
}
.topnav a { color: #2a78d6; text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.nav-user { margin-left: auto; color: #666; }
.nav-logout { color: #999 !important; }

.chart-wrap {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}
.login-box form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.login-box input {
    padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px;
}
.flash { padding: 8px; border-radius: 6px; font-size: 13px; }
.flash-error { background: #fdecea; color: #c0392b; }

.hint { font-size: 13px; color: #666; margin-top: 8px; }
.reason-cell, .explanation-cell { font-size: 12px; max-width: 280px; }

.pagination {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}
.pagination a { color: #2a78d6; text-decoration: none; }
