body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #000000;
}

.container-fluid {
    padding: 0;
    margin: 0;
}

.img {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

.header {
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    text-align: center; /* Center the text horizontally */
    font-size: 2.5em; /* Adjust font size */
    color: #000000; /* Text color */
    font-family: Arial, sans-serif; /* Choose a font */
    margin-top: 20px; /* Add some space above */
    margin-bottom: 20px; /* Add some space below */
}

.navbar {
    background-color: #4bc0c0;
    border: 1px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin: 0;
    padding: 0;
}

.navbar a {
    display: block;
    color: rgb(0, 0, 0);
    text-decoration: none;
    text-align: center;
    padding: 14px 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
    transform: scale(1.1);
    color: #000000;
}

/* Centering the Date Selection */
.date-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.date-container label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.date-container input[type="date"] {
    font-size: 16px;
    padding: 5px;
}

/* Button container styling */
#button-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 80%;
    justify-items: center;
    margin: auto;
}

/* General button styling */
button {
    background: white;
    border: 1px solid #0074cc;
    border-radius: 10px;
    margin: 10px 0;
    padding: 20px 40px;
    font-size: 0.8em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
}

/* Hover effect for buttons */
button:hover {
    background-color: #caffff;
}

/* Selected button styling */
button.selected {
    background-color: #4bc0c0 !important;
    color: rgb(0, 0, 0);
}

/* Fetch Data button styling */
#fetchData {
    grid-column: span 4;
    padding: 15px 30px;
    background-color: #a30000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#fetchData:hover {
    background-color: #a30000;
}

#fetchData:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

input.error {
    border: 2px solid red;
}

/* Graph Container */
.container_graph {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Loading Spinner */
#loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #7388e4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
.loading-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; /* Adjust width as needed */
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Initially hidden */
}

/* Loading Animation */
.loading-animation img {
    width: 150px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 5px;
}

/* Loading Text */
.loading-overlay h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}



@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
