:root {
    --bg-light: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #d1d5db;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-blue: #003399; /* Official-looking blue */
    --accent-hover: #002266;
    --success-bg: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    line-height: 1.5;
}

.container {
    max-width: 900px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.candidate-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.candidate-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-primary);
}

.vote-count-badge {
    background: #e0e7ff;
    color: var(--accent-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #c7d2fe;
}

.candidate-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.vote-btn {
    width: 100%;
    background-color: var(--accent-blue);
    color: white;
    border: 1px solid var(--accent-hover);
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vote-btn:hover {
    background-color: var(--accent-hover);
}

.vote-btn:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--success-bg);
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 50;
    border: 1px solid #047857;
    font-weight: bold;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    display: none;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-weight: bold;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.75rem;
    }
}
