.calculator {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator h3 {
    text-align: center;
    margin-bottom: 20px;
}

.calculator label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.calculator input[type="number"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.calculator input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
}

.calculator button {
    width: 100%;
    padding: 10px;
    background: #F1B247;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.calculator button:hover {
    background: #F1B247;
}

.result {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}



/* Style for range sliders */
.calculator input[type="range"] {
    -webkit-appearance: progress-bar;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
    margin-bottom: 10px;
}

/* Change track color when hovering */
.calculator input[type="range"]:hover {
    background: #cce5ff;
}

/* Custom style for the slider thumb (circle) */
.calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #F1B247 !important;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

/* Change color when dragging */
.calculator input[type="range"]::-webkit-slider-thumb:hover {
    background: #F1B247 !important;
}

/* Firefox-specific thumb styling */
.calculator input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #F1B247 !important;
    border-radius: 50%;
    cursor: pointer;
}

/* Active thumb effect */
.calculator input[type="range"]:active::-webkit-slider-thumb {
    background: #F1B247 !important;
}
