/* Blue Header Style */
header {
    text-align: center;
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    padding: 20px;
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Calculator Container */
.calculator {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Label Styling */
.label {
    display: block;
    text-align: left;
    margin: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    width: 100%; /* Consistent width */
    box-sizing: border-box; /* Include padding in the width */
}

/* Input Styling */
.input {
    width: 100%; /* Ensure inputs are consistently full-width */
    padding: 10px;
    margin-bottom: 15px; /* Spacing between fields */
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
    box-sizing: border-box; /* Prevents overflow from padding */
}

/* Button Styling */
button {
    width: 100%; /* Same width as inputs */
    padding: 10px;
    font-size: 1.2rem;
    color: #333;
    background-color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px; /* Consistent spacing */
}

button:hover {
    background-color: #0056b3; /* Darker blue for hover effect */
}

button:active {
    background-color: #003d80; /* Even darker blue for active state */
}

/* Result Box Styling */
.result-box {
    width: 100%; /* Align with the width of inputs and buttons */
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    box-sizing: border-box; /* Maintain consistent width */
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator {
        width: 90%; /* Adjust container width for smaller screens */
        margin: 20px auto;
    }

    .label,
    .input,
    button,
    .result-box {
        width: 100%; /* Full-width fields on smaller screens */
    }
}
