header {
    background-color: #004aad;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative; /* Ensure this for absolute positioning of child elements */
}

header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

header img {
    width: 60px;
    height: 60px;
    margin-right: 20px;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

.header-buttons {
    position: absolute;
    top: 10px; /* Distance from the top of the header */
    right: 10px; /* Distance from the right edge of the header */
}

.header-buttons button {
    padding: 5px 10px;
    background-color: #f00; /* Change as needed */
    color: #fff; /* Change as needed */
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.header-buttons button:hover {
    background-color: #c00; /* Change as needed */
}

/* Hide the button on login page */
.login-page .header-buttons {
    display: none;
}


footer {
    background-color: #004aad;
    color: white;
    text-align: center;
    padding: 10px;
    position: sticky;
    bottom: 0;
}

/* Loader Styles */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it overlays other content */
}

.spinner {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

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

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px; /* Rounded edges */
    max-width: 60%; /* Maximum width as a percentage of the viewport */
    width: auto; /* Width adjusts based on content */
    position: relative; /* Position the close button relative to this container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Error Modal Styles */
#errorModal .modal-content {
    background-color: #fdd; /* Light red background for error */
    color: #d00; /* Red text for error */
}

#errorModal .close {
    color: #d00; /* Red color for the close button */
}

#errorModal .close:hover,
#errorModal .close:focus {
    color: #900; /* Darker red on hover */
}

/* Success Modal Styles */
#successModal .modal-content {
    background-color: #e8f5e9; /* Light green background for success */
    color: #2e7d32; /* Dark green text for success */
}

#successModal .close {
    color: #2e7d32; /* Dark green color for the close button */
}

#successModal .close:hover,
#successModal .close:focus {
    color: #1b5e20; /* Darker green on hover */
}






.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1 {
    text-align: center;
}


.section {
    margin-bottom: 20px;
}

.section h2 {
    background-color: #f2f2f2;
    padding: 10px;
    margin: 0;
}

.section label {
    display: block;
    margin-bottom: 5px;
}

.section input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.column {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
    }
}
