/* Estilos específicos para Calculadora de Tempo Economizado */

.info-box {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-box h4 {
    color: #2b6cb0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.comparacao-tempos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.tempo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tempo-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.tempo-valor {
    font-weight: 700;
    color: #2b6cb0;
    font-size: 0.9rem;
}

.resultado-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.resultado-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.resultado-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.resultado-valor {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
}

.resultado-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beneficios-adicionais {
    background: linear-gradient(135deg, #f0fff4, #f7fafc);
    border: 2px solid #68d391;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.beneficios-adicionais h4 {
    color: #38a169;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.beneficios-adicionais ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficios-adicionais li {
    margin-bottom: 0.8rem;
    padding-left: 0;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.5;
}

.beneficios-adicionais li strong {
    color: #38a169;
}

.grafico-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#graficoComparacao {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .comparacao-tempos {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .resultado-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .resultado-card {
        padding: 1rem;
    }
    
    .resultado-valor {
        font-size: 1.4rem;
    }
    
    .resultado-icon {
        font-size: 2rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .beneficios-adicionais {
        padding: 1rem;
    }
    
    .tempo-item {
        padding: 0.6rem 0.8rem;
    }
    
    .tempo-label, .tempo-valor {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .resultado-cards {
        grid-template-columns: 1fr;
    }
    
    .resultado-card {
        padding: 0.8rem;
    }
    
    .resultado-valor {
        font-size: 1.2rem;
    }
    
    .resultado-icon {
        font-size: 1.8rem;
    }
    
    .beneficios-adicionais li {
        font-size: 0.85rem;
    }
}

/* Animações */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resultado-card {
    animation: slideInUp 0.5s ease-out;
}

.resultado-card:nth-child(1) { animation-delay: 0.1s; }
.resultado-card:nth-child(2) { animation-delay: 0.2s; }
.resultado-card:nth-child(3) { animation-delay: 0.3s; }
.resultado-card:nth-child(4) { animation-delay: 0.4s; }

/* Melhorias no modal */
.calc-container {
    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;
    padding: 20px;
    box-sizing: border-box;
}

.calc-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.calc-header {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
    position: relative;
}

.calc-content {
    padding: 2rem;
}

.calc-container .calc-box label {
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.calc-container .calc-box input,
.calc-container .calc-box select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.calc-container .calc-box input:focus,
.calc-container .calc-box select:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.calc-container .calc-box button {
    margin-top: 1.5rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Estilo para o título da calculadora */
.calc-header h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    margin: 0;
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .calc-container {
        padding: 10px;
    }
    
    .calc-box {
        max-height: 95vh;
    }
    
    .calc-content {
        padding: 1.5rem;
    }
    
    .calc-header {
        padding: 1rem;
    }
}
