body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f6fb;
    color: #1f2933;
}

.navbar-primary {
    background: linear-gradient(90deg, #102a43, #2563eb);
}

.card {
    border-radius: 0.9rem;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 35, 52, 0.08);
}

.card-header {
    border-bottom: none;
    background: transparent;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 0.6rem;
    border: 1px solid #ced4da;
    padding: 0.55rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

.btn-rounded {
    border-radius: 999px;
}

.app-container {
    max-width: 1140px;
}

.sidebar {
    border-right: 1px solid #dee2e6;
    padding-top: 1rem;
}

.sidebar .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    margin-bottom: 0.15rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sidebar .nav-link i {
    font-size: 1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #2563eb;
    color: #fff;
}

.candidate-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.candidate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 35, 52, 0.16);
    border-color: #2563eb;
}

.candidate-card img {
    object-fit: cover;
    height: 180px;
    width: 100%;
}

.candidate-meta {
    font-size: 0.78rem;
    color: #6b7280;
}

.candidate-meta .label {
    font-weight: 600;
    color: #374151;
}

.candidate-vote-btn {
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.candidate-vote-btn i {
    font-size: 1.1rem;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.badge-pill {
    border-radius: 999px;
    padding-inline: 0.6rem;
}

@media (max-width: 767.98px) {
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }
}
