/* Font Families */
body {
    font-family: 'Merriweather', 'Playfair Display', serif;
    margin: 20px;
    background: #f0f4f8;
}

/* Main Title */
h1 {
    font-size: 40px;
    color: #0d7dd4;
    margin-bottom: 25px;
    text-align: center;
    animation: fadeIn 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Secondary Title */
h2 {
    color: #0d7dd4;
    font-size: 24px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

div {
    margin-bottom: 20px;
}

/* Input Labels, Fields, and Buttons */
label, input, select, button {
    display: block;
    margin-bottom: 12px;
    width: 100%;
    max-width: 350px;
    animation: slideIn 0.5s ease-out;
}

label {
    color: #333;
    font-weight: bold;
}

input[type="date"], input[type="number"], select {
    border: 2px solid #0d7dd4;
    border-radius: 12px;
    padding: 10px;
    font-size: 16px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
button {
    cursor: pointer;
    background: linear-gradient(135deg, #0d7dd4, #0b6fbb);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

button:hover {
    background: linear-gradient(135deg, #0b6fbb, #095a9f);
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

/* Results Section */
#results, .results-table-container {
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #0d7dd4;
    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.show, .results-table-container.show {
    opacity: 1;
    transform: scale(1);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px 14px;
    border: 1px solid #0d7dd4;
    text-align: center;
}

th {
    background-color: #0d7dd4;
    color: white;
}

td {
    background-color: #f9f9f9;
    color: #333;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    max-width: 350px;
    margin: auto;
}

.button-group button {
    width: 48%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-15px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
