/* Custom CSS styles */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#resultTable {
    margin-top: 20px;
}

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

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto; /* Center the form-container */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-field {
    margin-bottom: 10px;
    margin-left: 10px; /* Adjust the left margin as needed */
    margin-right: 30px; /* Adjust the right margin as needed */
}

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

.form-field input[type="text"],
.form-field input[type="number"],
.form-field select {
    width: calc(100% - 20px); /* Adjusted width to accommodate padding */
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-btn {
    width: 50%; /* Adjust the width of the button */
    margin-top: 10px; /* Add some space between the last form field and the button */
    padding: 10px;
    background-color: #004F96;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-btn:hover {
    background-color: #005DAF;
}

/* Style for the disabled button */
.form-btn[disabled] {
    background-color: #ccc; /* Set the background color to a light gray for disabled state */
    cursor: not-allowed; /* Show a "not-allowed" cursor when the button is disabled */
}

.submit-container {
    display: flex;
    justify-content: center;
}

/* Style for the export buttons */
.export-button {
    display: block;
    margin-bottom: 10px;
    background-color: gray;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* Style for the result table container */
.result-container {
    max-width: calc(100% - 20px); /* Adjusted max-width */
    overflow-x: auto;
    max-height: 800px;
    margin-left: 10px; /* Added margin on the left */
    margin-right: 10px; /* Added margin on the right */
}



/* Add custom styles for the table with fixed header */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em; /* Adjust font size */
}

/* Add custom styles for the table header */
thead {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
}

/* Add custom styles for the table body */
tbody {
    overflow-y: auto;
}

/* Add custom styles for table rows */
tr {
    line-height: 1.2; /* Adjust line height for tighter rows */
}