/* Estilos para seleção de regime tributário */

/* Modal de impostos */
.modal-impostos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-impostos.hidden {
    display: none;
}

.modal-impostos .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Grid de regimes tributários */
.regimes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
}

.regime-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.regime-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.regime-card.selecionado {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.regime-card.selecionado::after {
    content: "✓ Selecionado";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Conteúdo do card */
.regime-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.regime-icon {
    font-size: 2rem;
}

.regime-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.regime-taxa {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.regime-descricao {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 10px 0;
}

.regime-faturamento {
    background: #f8f9ff;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
}

/* Badges de identificação */
.badge-mei {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
}



/* Seção de faturamento personalizado */
.faturamento-personalizado {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.faturamento-personalizado.hidden {
    display: none;
}

.faturamento-personalizado h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
}

.faturamento-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.faturamento-input input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.faturamento-input button {
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.taxa-calculada {
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .regimes-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .modal-impostos .modal-content {
        width: 95%;
        margin: 10px;
    }
}