/*
gestao_votantes.css - Estilos atualizados para a página de gestão de votantes
 */
:root {
    --primary: #CC0000;
    --primary-dark: #8B0000;
    --primary-light: #FFE6E6;
    --accent: #FFD700;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--primary-light) 100%);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    padding: 0;
    margin: 0;
}

.navbar {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.container-fluid {
    padding: 2rem 1rem;
}

.main-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    border: none;
    transition: var(--transition);
}

.main-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.header-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    margin-bottom: 1rem;
    border-radius: 5px 5px 0 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.stats-icon {
    font-size: 2.2rem;
    margin-right: 1rem;
    color: var(--primary);
}

.stats-content strong {
    font-size: 1.8rem;
    display: block;
    color: var(--primary);
}

.stats-content span {
    color: #666;
    font-size: 0.9rem;
}

.action-card {
    border-radius: var(--border-radius);
    border: none;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.action-card .card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.action-card.primary .card-header {
    background-color: var(--primary);
    color: var(--text-light);
}

.action-card.success .card-header {
    background-color: #198754;
    color: var(--text-light);
}

.info-list {
    padding-left: 1.5rem;
}

.info-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #146c43;
    border-color: #146c43;
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(204, 0, 0, 0.25);
}

.alert {
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card.utilized {
    border-top-color: #198754;
}

.stat-card.not-utilized {
    border-top-color: #ffc107;
}

.stat-card.percentage {
    border-top-color: #0d6efd;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-utilized .stat-icon {
    color: #198754;
}

.stat-not-utilized .stat-icon {
    color: #ffc107;
}

.stat-percentage .stat-icon {
    color: #0d6efd;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Loader Overlay - Melhorado */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
}

.loader-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 5px solid var(--primary);
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animação para o botão de gerar */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

#btnGerarQRCodes {
    animation: pulse 2s infinite;
}

/* Animações adicionais */
.action-card {
    opacity: 0;
    transform: translateY(20px);
}

.action-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-card {
        padding: 1rem;
    }

    .stats-content strong {
        font-size: 1.4rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}