/* Base styles for Top Docs voting POC */
:root {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --accent: #22d3ee;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, #0b1223, var(--bg)),
                radial-gradient(circle at 80% 0%, #0a1a2f, var(--bg));
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.logo-wrap {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 90vw;
}

.site-nav a {
    color: var(--text);
    margin-left: 18px;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    padding: 70px 0 40px;
}

.hero h2 {
    margin: 0 0 12px;
    font-size: 2.3rem;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.card h3 {
    margin: 0 0 8px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

button,
.button {
    display: inline-block;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    color: #0b1223;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.25);
    opacity: 0.95;
}

.page-content {
    min-height: 70vh;
}

.site-footer {
    padding: 30px 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vote-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.vote-search-input {
    flex: 1;
    min-width: 240px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #0f172a;
    color: #e5e7eb;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.category-card,
.nominee-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 14px;
    background: #0d1527;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    gap: 6px;
}

.category-card .button {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.search-results-card {
    position: relative;
    z-index: 2;
}

.category-card.selected-cat {
    border-color: var(--accent);
    box-shadow: 0 12px 26px rgba(34, 211, 238, 0.25);
}

.category-card.complete-cat {
    border-color: #22c55e;
    background: #0f1f14;
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.25);
}

.category-card.partial-cat {
    border-color: #f59e0b;
    background: #1a150a;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.25);
}

.category-card.hidden {
    display: none;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #1f2a44;
    background: #0b1220;
    color: #e5e7eb;
}

.nominee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.ballot-box {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #0d1527;
}

.ballot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
}

.ballot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ballot-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 211, 238, 0.12);
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.chip-remove {
    background: transparent;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.ballot-empty {
    color: #9ca3af;
}

.close-detail {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.close-detail:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.3);
}

.nominee-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.nominee-filter {
    flex: 1;
    min-width: 200px;
}

.limit-warning {
    color: #fbbf24;
    margin-bottom: 8px;
    min-height: 18px;
}

.nominee-card.hidden {
    display: none;
}

.nominee-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nominee-card input {
    margin-right: 8px;
}

.nominee-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--accent);
    transform: translateY(2px);
}

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        margin-top: 8px;
    }

    .site-nav a {
        margin-left: 0;
        margin-right: 10px;
    }

    .vote-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .nominee-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .nominee-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
.vote-search-input {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #1f2a44;
    background: #0b1220;
    color: #e5e7eb;
}
