/* Estilos para o Simulador de Investimentos - Alinhado com a paleta do site principal */

/* Estilos específicos para a página do simulador */
.simulador-page-container {
    background-color: #1a1f36;
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
}

.simulador-section {
    padding: 2rem 0;
}

.container-simulador {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #2a324d;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #d1d9e6;
    animation: fadeInUp 0.8s ease forwards;
}

.container-simulador h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container-simulador p {
    color: #a9b3c1;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Formulário */
#simulador-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #1f273e;
    border: 1px solid #3a435a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
}

.form-group input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Slider de Investimento */
.slider-container {
    display: flex;
    flex-direction: column;
}
#investimento-slider {
    width: 100%;
    margin-top: 1rem;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #1f273e;
    outline: none;
    border-radius: 5px;
    border: 1px solid #3a435a;
}
#investimento-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ffcc;
    cursor: pointer;
    border-radius: 50%;
}
#investimento-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ffcc;
    cursor: pointer;
    border-radius: 50%;
}


/* Opções de Risco */
.risk-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 1rem;
}

.risk-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #1f273e;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
    flex-grow: 1;
    justify-content: center;
    border: 1px solid #3a435a;
}

.risk-options label:hover {
    background-color: #2a324d;
    border-color: #00ffcc;
}

.risk-options input[type="radio"] {
    margin-right: 8px;
    accent-color: #00ffcc;
}

.risk-options input[type="radio"]:checked + span {
    color: #00ffcc;
    font-weight: 500;
}

/* Botão */
button[type="submit"] {
    background-color: #00ffcc;
    color: #1a1f36;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 2rem;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 255, 204, 0.2);
}

/* Área de Alerta */
.alert {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.alert.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert.warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffd43b;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Área de Resultado */
#resultado-area {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: #1f273e;
    border-radius: 12px;
    border: 1px solid #3a435a;
    animation: fadeInUp 0.6s ease forwards;
}

#resultado-area h2, #resultado-area h3 {
    text-align: center;
    color: #00ffcc;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
}
#resultado-area h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Cards de Resumo da Projeção */
.projection-summary {
    margin-bottom: 3rem;
}
.summary-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.summary-card {
    background-color: #2a324d;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    border: 1px solid #3a435a;
}
.summary-card h4 {
    margin: 0 0 0.8rem 0;
    color: #a9b3c1;
    font-size: 1rem;
    font-weight: 400;
}
.summary-card p {
    margin: 0;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
}
.summary-card p.juros {
    color: #00ffcc;
}


/* Gráfico */
.chart-wrapper {
    margin-bottom: 3rem;
}
#chart-container {
    position: relative;
    height: 40vh; /* Altura definida para o gráfico */
    width: 100%;
}

/* Detalhes da Alocação */
.allocation-details {
    margin-bottom: 3rem;
}

/* Estilo para Cards de Alocação */
#resultado-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.result-card {
    background-color: #2a324d;
    border: 1px solid #3a435a;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 204, 0.3);
}
.result-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.3rem;
}
.result-card p {
    margin-bottom: 0.6rem;
    color: #a9b3c1;
    text-align: left;
}
.result-card .percentage {
    font-weight: 600;
    color: #00ffcc;
}
.result-card .value {
    font-weight: 600;
    color: #ffffff;
}

/* Tooltip */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #00ffcc;
}
.tooltip-trigger .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #1a1f36;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #00ffcc;
    font-size: 0.9rem;
}
.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.explanation {
    grid-column: 1 / -1; /* Ocupa a largura total */
    margin-top: 1.5rem;
    color: #a9b3c1;
    border-top: 1px dashed #3a435a;
    padding-top: 1rem;
}

/* Seção de Call to Action */
.cta-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background-color: #2a324d;
    border-radius: 10px;
    border: 1px solid #3a435a;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.cta-btn {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #00ffcc;
    color: #00ffcc;
}
.cta-btn.primary {
    background-color: #00ffcc;
    color: #1a1f36;
}
.cta-btn:hover {
    background-color: #ffffff;
    color: #1a1f36;
    border-color: #ffffff;
    transform: translateY(-2px);
}

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

/* Responsividade */
@media (max-width: 768px) {
    .container-simulador { padding: 1.5rem; margin: 0 1rem; }
    .risk-options { flex-direction: column; }
    .risk-options label { margin-bottom: 0.5rem; }
    .summary-cards { flex-direction: column; }
    .cta-buttons { flex-direction: column; }
}