/* Global Styles from User */
body, html {
    font-family: 'Outfit', 'Karla', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    box-sizing: border-box;
    background-color: transparent;
}

.simulator {
    background-color: #f1f5fc;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 28.8rem;
    max-height: 95vh;
    overflow-y: auto;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.simulator__section {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.simulator__label {
    color: #4a5568;
    font-weight: 1000;
    display: inline-block;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.simulator__slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.simulator__min {
    font-size: 0.875rem;
    color: #595959;
    margin-left: 0.5rem;
    margin-right: 0.2rem;
    min-width: 2rem;
}

.simulator__max {
    font-size: 0.875rem;
    color: #595959;
    margin-left: 0.2rem;
    margin-right: 0.5rem;
    min-width: 3rem;
    text-align: right;
}

.slider-wrapper {
    position: relative;
    width: calc(100% - 4rem);
}

.simulator__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 96%;
    height: 0.75rem;
    background: linear-gradient(to right, rgb(55, 112, 255) 0%, #608CFA var(--slider-value), #DBE4FE var(--slider-value), #DBE4FE 100%);
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.simulator__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border: 1px solid #608CFA;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.simulator__slider::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.slider-value {
    color: #608CFA;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 800;
}

.slider-value.fixed {
    position: static;
    display: inline-block;
    margin-left: 0.125rem;
}

/* Results */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.result-block {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-block.highlight {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.icon-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.big-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.big-number.red { color: #ef4444; }
.big-number.blue { color: #608CFA; }
.big-number.green { color: #10b981; }

.comparison-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Separator */
.separator {
    height: 1px;
    background: #e2e8f0;
    margin: 1.5rem 0;
}

/* Mobile */
@media (max-width: 480px) {
    body, html {
        height: auto;
        padding: 1rem;
    }

    .simulator {
        width: 100%;
        padding: 1rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .big-number {
        font-size: 1.25rem;
    }

    .simulator__max {
        min-width: 2.5rem;
    }
}
