/**
 * CSS para grid de estados
 */

.estados-grid-container {
    margin: 0 auto;
    padding: 20px;
}

.estados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    min-height: 400px;
}

.estado-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.estado-card.loading {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #B735EA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

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

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

.estado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.estado-header {
    background: #B735EA;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estado-nome {
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.estado-bandeira {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #B735EA;
}

.estado-body {
    padding: 0;
}

.estado-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.estado-row:nth-child(even) {
    background: #f9f9f9;
}

.estado-row.mulheres-faltando {
    background: #ffe6f2;
}

.estado-label {
    color: #666;
    font-size: 14px;
}

.estado-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.estado-footer {
    padding: 15px 20px;
    text-align: center;
}

.estado-btn {
    background: #B735EA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.estado-btn:hover {
    background: #a02dd8;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: #B735EA;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #a02dd8;
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #B735EA;
    width: 0%;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .estados-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
} 