/* SCA-LT Savings Calculator Styles */
.sca-lt-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.sca-lt-calculator {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

/* Títulos centralizados */
.calculator-form .input-group {
    margin-bottom: 32px;
    text-align: center;
}

.calculator-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    color: #2d3748;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Container para slider e input numérico */
.input-with-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Estilo do Slider */
.input-with-unit input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 8px 0;
    order: 2; /* Coloca o slider após o número */
}

.input-with-unit input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0076b6;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 118, 182, 0.3);
    transition: all 0.2s ease;
}

.input-with-unit input[type="range"]::-webkit-slider-thumb:hover {
    background: #005a8c;
    transform: scale(1.05);
}

.input-with-unit input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0076b6;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 118, 182, 0.3);
}

/* Input numérico - mais minimalista */
.input-with-unit .number-input {
    width: 140px;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #0076b6;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    order: 1; /* Coloca o número antes do slider */
}

.input-with-unit .number-input:focus {
    outline: none;
    border-color: #0076b6;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 118, 182, 0.1);
}

/* Unidade estilizada */
.input-with-unit .unit {
    font-weight: 500;
    color: #718096;
    font-size: 14px;
    margin-top: 4px;
    order: 3; /* Coloca a unidade após o slider */
}

/* Container de unidade para o input numérico */
.number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.number-input-container .number-input {
    margin: 0;
}

.number-input-container .unit {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Resultado - minimalista */
.calculator-result {
    margin-top: 40px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.result-title {
    color: #2d3748;
    font-size: 20px;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.save-text, .per-year-text {
    color: #718096;
    font-weight: 400;
}

.savings-amount {
    font-size: 36px;
    font-weight: 600;
    color: #00a651;
    margin: 0 6px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Valor do slider atual */
.slider-value {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

/* Indicadores de slider */
.slider-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    font-size: 11px;
    color: #a0aec0;
    font-weight: 500;
}

/* Linha divisória sutil */
.input-group:not(:last-child)::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #e2e8f0;
    margin: 32px auto 0;
}

/* Responsividade */
@media (max-width: 640px) {
    .sca-lt-calculator-wrapper {
        padding: 16px;
    }
    
    .sca-lt-calculator {
        padding: 24px 16px;
        border-radius: 12px;
    }
    
    .calculator-form .input-group {
        margin-bottom: 28px;
    }
    
    .input-with-unit .number-input {
        width: 120px;
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .calculator-result {
        padding: 20px;
        margin-top: 32px;
    }
    
    .result-title {
        font-size: 18px;
    }
    
    .savings-amount {
        font-size: 32px;
    }
}

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

.calculator-form .input-group {
    animation: fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.calculator-form .input-group:nth-child(1) { animation-delay: 0.1s; }
.calculator-form .input-group:nth-child(2) { animation-delay: 0.2s; }
.calculator-form .input-group:nth-child(3) { animation-delay: 0.3s; }
.calculator-form .input-group:nth-child(4) { animation-delay: 0.4s; }

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .sca-lt-calculator {
        background: #1a202c;
        border-color: #2d3748;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .calculator-form label {
        color: #e2e8f0;
    }
    
    .input-with-unit input[type="range"] {
        background: #2d3748;
    }
    
    .input-with-unit input[type="range"]::-webkit-slider-thumb {
        border-color: #1a202c;
    }
    
    .input-with-unit .number-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .input-with-unit .number-input:focus {
        background: #2d3748;
        border-color: #0076b6;
    }
    
    .calculator-result {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .result-title {
        color: #e2e8f0;
    }
    
    .save-text, .per-year-text {
        color: #a0aec0;
    }
    
    .input-group:not(:last-child)::after {
        background: #4a5568;
    }
}