#time-savings-calculator {
    max-width: 400px;
    margin: auto;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

#calculator-form label {
    display: block;
    margin-top: 0.5em;
}

#calculator-form input {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.3em;
    margin-bottom: 0.5em;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#calculator-form button {
    width: 100%;
    padding: 0.7em;
    margin-top: 1em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#calculator-form button:hover {
    background-color: #45a049;
}

#nextButton {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#results h4 {
    margin-top: 1em;
    color: #333;
}

#recommendations {
    list-style-type: square;
    margin-top: 0.5em;
    padding-left: 1.2em;
}

#spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    width: 100%;
    height: 100%;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#entry-modal {
    display: none; /* Keep only one display property to avoid conflicts */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure it appears above other elements */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}
