/* File: AMS/static/css/custom.css */

/* Center the form container and add padding */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa; /* Light gray background */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Adjust the profile table for better readability */
.profile-table {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff; /* White background */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Optional: Customize alert messages */
.alert {
    border-radius: 8px;
}

/* Customize buttons if needed */
.btn-primary {
    background-color: #00A385;
    border-color: #00A385;
}

.btn-primary:hover {
    background-color: #008f6f;
    border-color: #008f6f;
}

/* Ensure spinner aligns properly */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* <!-- Custom CSS for Scrollable Table with Fixed Headers -->*/
.custom-table-container {
    max-height: 500px; /* Adjust as needed */
    overflow: auto;
    position: relative;
    border: 1px solid #dee2e6; /* Optional: Add border for better visibility */
}

.custom-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table-container thead th {
    position: sticky;
    top: 0;
    background-color: #ffffff; /* Header background color */
    z-index: 2; /* Ensure headers stay above table body */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); /* Optional: Add shadow for separation */
}

.custom-table-container th, .custom-table-container td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Optional: Adjust table layout for better performance */
.custom-table-container table {
    table-layout: auto; /* Change to 'fixed' if needed */
}

/* Ensure the container allows both horizontal and vertical scrolling */
.custom-table-container {
    overflow-x: auto;
    overflow-y: auto;
}

/* Optional: Customize scrollbar appearance */
.custom-table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.custom-table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.custom-table-container::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.05);
}