body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.main-heading {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.calculator-container {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
}

.image-container {
    flex: 1;
    background: linear-gradient(to bottom, #ffb6c1, #87ceeb);
    padding: 20px;
}

.calculator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.calculator {
    flex: 1;
    padding: 40px;
    background: white;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9em;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

button {
    width: 100%;
    padding: 15px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

#result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
    text-align: center;
}

#result p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #333;
}

@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }

    .image-container {
        height: 200px;
    }

    .calculator {
        padding: 20px;
    }
}

.toggle {
    margin-top: 20px;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle label {
    color: #4FBCA1;
    position: relative;
    cursor: pointer;
    padding-left: 75px;
}

.toggle input[type="checkbox"] + label::before {
    content: ' ';
    display: block;
    height: 18px;
    width: 45px;
    border: 1px solid #4281A4;
    border-radius: 9px;
    position: absolute;
    top: 0px;
    left: 10px;
    background: #4281A4;
}

.toggle input[type="checkbox"] + label::after {
    content: ' ';
    display: block;
    height: 30px;
    width: 30px;
    border: 1px solid #FF686B;   
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 0px;
    background: #FF686B;
    transition: all 0.3s ease-in;
}

.toggle input[type="checkbox"]:checked + label::after {
    left: 35px; 
    transition: all 0.3s ease-in;
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.inflation-note {
    color: #666;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
}

.chart-container {
    position: relative;
    height: 200px;
    width: 200px;
    margin: 0 auto;
    margin-top: 20px;
}
