/* Font Families */
body {
    font-family: 'Merriweather', serif;
    margin: 20px;
}

h1, h2, p {
    font-family: 'Merriweather', serif;
}

h1 {
    font-size: 30px;
    color: #0d7dd4; /* Updated color */
    margin-bottom: 20px;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.6s ease forwards;
}

div {
    margin-bottom: 15px;
}

label, input, select, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
    animation-delay: 0.2s;
}

label {
    color: #000000;
    animation-delay: 0.3s;
}

input[type="number"], input[type="date"] {
    border: 1px solid #0d7dd4; /* Updated color */
    border-radius: 50px;
    padding: 10px;
}

button {
    cursor: pointer;
    background-color: #0d7dd4; /* Updated color */
    color: white;
    border: 1px solid #0d7dd4; /* Updated color */
    border-radius: 50px;
    padding: 10px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #0a5fa2; /* Slightly darker blue */
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
}

button:focus, button:focus-visible {
    background-color: #0d7dd4; /* Updated color */
    color: white;
    border: 1px solid #0d7dd4; /* Updated color */
    outline: none;
}

input:focus {
    border-color: #0d7dd4; /* Updated color */
    outline: none;
    transform: scale(1.02);
}

.results-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f0fdf9;
    border: 2px solid #0d7dd4; /* Updated color */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.results-container.show {
    opacity: 1;
    transform: scale(1);
}

#summary h3, #summary p {
    font-family: 'Merriweather', serif;
    color: #0d7dd4; /* Updated color */
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 900;
}

.result-heading {
    font-size: 20px;
    color: #0d7dd4; /* Updated color */
    font-weight: 900;
    margin-bottom: 15px;
}

.table-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #0d7dd4; /* Updated color */
    color: white;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #0d7dd4; /* Updated color */
}

tr:nth-child(even) {
    background-color: #f0fdf9;
}

/* Error Message Styling */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: -5px;
    margin-bottom: 10px;
}

input.error {
    border-color: red;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
