body.bg-gray-100 {
    font-family: 'Arial', sans-serif;
    background-color: transparent !important;
    background-image: url('/static/images/background.jpg') !important;
    background-size: cover; /* Scales the image to cover the entire background */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    background-attachment: fixed; /* Keeps the background fixed during scroll */
    min-height: 100vh; /* Ensures the body takes at least the full viewport height */    
}


.footer-text {
    clear: both;
    display: block;
    bottom: 10px; /* Slightly offset from the bottom */
    left: 0;
    width: 100%;
    text-align: center;
    color: white; /* Keep text white for visibility on background */
    background-color: transparent; /* No background color */
    padding: 10px 0; /* Minimal padding for spacing */
    font-size: 1rem; /* Adjust size as needed */
    z-index: 10; /* Ensure text is above other elements */
}

.site-header {
    background-color: rgb(254, 28, 12);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 20;
    font-family: "Calibri Light", sans-serif;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.site-header h1 {
    font-size: 2rem; /* Larger title (32px) */
    letter-spacing: 0.3rem; /* Increased letter spacing for all header text */
}

.site-header a {
    font-size: 1.5rem; /* Links stay at 24px */
}

/* Dropdown styling for Lawyer link */
.site-header .relative.group {
    position: relative;
}

.site-header .group-hover\:block {
    background-color: rgb(254, 28, 12); /* Match site-header */
    min-width: 150px; /* Ensure dropdown is wide enough */
}

.lawyer-heading {
    text-align: center;
    color: rgb(114, 53, 13);
    font-size: 2rem;
    background-color: transparent;
    padding: 2rem 0;
    margin: 1rem 0;
    position: relative; /* For future graphic positioning */
    z-index: 10;
}

.lawyer-heading h2 {
    font-family: Georgia, serif;
    font-size: 4rem; /* Large size to make text prominent */
    color: rgb(114, 53, 13); /* White for contrast; adjust if needed */
    line-height: 1.2; /* Adjust spacing between lines */
   /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Optional shadow for readability */

}

.welcome-heading {
    text-align: center;
    background-color: transparent;
    padding: 2rem 0;
    margin: 1rem 0;
    position: relative; /* For future graphic positioning */
    z-index: 10;
}

.welcome-heading h2 {
    font-family: Georgia, serif;
    font-size: 7rem; /* Large size to make text prominent */
    color: rgb(114, 53, 13); /* White for contrast; adjust if needed */
    line-height: 1.2; /* Adjust spacing between lines */
   /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Optional shadow for readability */
}

.welcome-logo {
    display: block;
    margin: 1rem auto 0; /* Center horizontally, add top margin */
    max-width: 100%; /* Prevent overflow */
    height: auto; /* Maintain aspect ratio */
}


.welcome-content {
    font-family: Calibri, serif;
    font-size: 1.2rem; /* Slightly larger for readability */
    color: rgb(114, 53, 13) !important; /* Brown font color */
    background-color: transparent; /* Show background image */
    text-align: center; /* Optional: center text for consistency */
}

.centered-container {
        max-width: 945px;
        margin: 0 auto;
        padding: 1rem;
    }

.boxed-table {
        border: 2px solid rgb(114, 53, 13);
        color: rgb(114, 53, 13) !important;
        border-radius: 0.5rem;
        overflow: hidden;
        background-color: #e5e7eb; /* Gray background */
    }

.container {
    max-width: 1200px;
}
nav a:hover {
    color: rgb(254, 28, 12);
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
header, main, footer {
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease
}

nav ul li a:hover {
    text-decoration: underline;
    background-color: #ffffff; /* Tailwind bg-blue-500 for subtle contrast */
}

#month-display {
    margin: 10px 20px;
    font-weight: bold;
}

#prev-month, #next-month {
    padding: 5px 10px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#prev-month:hover, #next-month:hover {
    background-color: #0056b3;
}

#location-select {
    margin: 10px;
    padding: 5px;
}

.clinic-box {
    color: rgb(114, 53, 13) !important;
/*    border: 3px solid; /* rgb(114, 53, 13) !important; /* Dark gray border */
/*    background-color: rgba(255, 255, 255, 0.5); /* Light gray background */
    padding: 1rem;
    border-radius: 0.25rem;
    width: 20rem !important;
    text-align: center;
}

#clinics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#clinics-container div {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
}

#clinics-container div p {
    margin: 5px 0;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 200px; /* Match input width */
    flex-shrink: 0;
}

#autocomplete-dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
    max-height: 200px;
    overflow-y: auto;
    top: 100%; /* Position below the input */
    left: 0;
    margin-top: 2px;
}

#autocomplete-dropdown div {
    padding: 8px;
    cursor: pointer;
}

#autocomplete-dropdown div:hover {
    background-color: #f3f4f6; /* Tailwind gray-100 */
}


.lawyer-toggle {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.lawyer-toggle:hover {
    background-color: #0056b3;
}

#login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#login-modal.hidden {
    display: none;
}

#login-modal.opacity-100 {
    opacity: 1;
}

#login-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

#login-modal input {
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 4px;
}

#login-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#login-modal button {
    background-color: #2563eb; /* Tailwind bg-blue-600 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

#login-modal button:hover {
    background-color: #1d4ed8; /* Tailwind bg-blue-700 */
}

#login-modal button[type="button"] {
    background-color: #6b7280; /* Tailwind bg-gray-500 */
}

#login-modal button[type="button"]:hover {
    background-color: #4b5563; /* Tailwind bg-gray-600 */
}


.login-prompt {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.login-prompt:hover {
    background-color: #0056b3;
}

/* Modal styles */
#login-modal, #create-clinic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#login-modal.hidden, #create-clinic-modal.hidden {
    display: none;
}

#login-modal.opacity-100, #create-clinic-modal.opacity-100 {
    opacity: 1;
}

#login-modal .modal-content, #create-clinic-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

#login-modal input, #create-clinic-modal input, #create-clinic-modal select {
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 4px;
}

#login-modal label, #create-clinic-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#login-modal button, #create-clinic-modal button {
    background-color: #2563eb; /* Tailwind bg-blue-600 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

#login-modal button:hover, #create-clinic-modal button:hover {
    background-color: #1d4ed8; /* Tailwind bg-blue-700 */
}

#login-modal button[type="button"], #create-clinic-modal button[type="button"] {
    background-color: #6b7280; /* Tailwind bg-gray-500 */
}

#login-modal button[type="button"]:hover, #create-clinic-modal button[type="button"]:hover {
    background-color: #4b5563; /* Tailwind bg-gray-600 */
}

/* Clinic table styles */
#clinics-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

#clinics-table th, #clinics-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

#clinics-table th {
    background-color: #e5e7eb; /* Tailwind bg-gray-200 */
    font-weight: bold;
}

#clinics-table .delete-clinic-btn {
    background-color: #dc2626; /* Tailwind bg-red-600 */
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#clinics-table .delete-clinic-btn:hover {
    background-color: #b91c1c; /* Tailwind bg-red-700 */
}

#clinics-table .edit-clinic-btn {
    background-color: #2563eb; /* Tailwind bg-blue-600 */
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px; /* Space between edit and delete buttons */
}

#clinics-table .edit-clinic-btn:hover {
    background-color: #1d4ed8; /* Tailwind bg-blue-700 */
}

#edit-clinic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#edit-clinic-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

#edit-clinic-modal input,
#edit-clinic-modal select {
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 4px;
}

#edit-clinic-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#edit-clinic-modal button[type="submit"] {
    background-color: #16a34a; /* Tailwind bg-green-600 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#edit-clinic-modal button[type="submit"]:hover {
    background-color: #15803d; /* Tailwind bg-green-700 */
}

#edit-clinic-modal button[type="button"] {
    background-color: #6b7280; /* Tailwind bg-gray-500 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#edit-clinic-modal button[type="button"]:hover {
    background-color: #4b5563; /* Tailwind bg-gray-600 */
}

div#client-lookup {
    display: none; /* Hidden by default for non-authenticated users */
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* Left-justify label and search-container */
    gap: 5px; /* Tighter gap for closer alignment */
    margin-bottom: 10px;
    overflow: visible;
}

#client-lookup label {
    font-weight: bold;
    color: #1f2937; /* Tailwind gray-800 */
    text-align: left; /* Ensure left alignment */
    margin: 0; /* Reset margins */
    padding: 0; /* Reset padding */
    flex-shrink: 0; /* Prevent label from shrinking */
}

#client-search-input {
    border: 1px solid #ccc;
    padding: 8px;
    width: 200px;
    border-radius: 4px;
    font-size: 14px;
    color: #1f2937; /* Tailwind gray-800 */
}

#client-search-input::placeholder {
    color: #9ca3af; /* Tailwind gray-400 */
    font-style: italic;
}

#clear-search-btn {
    background-color: #6b7280; /* Tailwind gray-500 */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

#clear-search-btn:hover {
    background-color: #4b5563; /* Tailwind gray-600 */
}

#search-client-btn {
    background-color: #2563eb; /* Tailwind blue-600 */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

#search-client-btn:hover {
    background-color: #1d4ed8; /* Tailwind blue-700 */
}



#client-lookup-results {
    position: absolute;
    top: calc(100% + 0.5rem); /* Position just below search container */
    left: 0;
    width: 100%;
    max-width: 800px; /* Match table width to UI */
    background-color: white;
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 900; /* Below autocomplete but above other content */
}

#client-lookup-results table {
    width: 100%;
    border-collapse: collapse;
}

#client-lookup-results th,
#client-lookup-results td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

#client-lookup-results th {
    background-color: #f3f4f6; /* Tailwind gray-100 */
    font-weight: bold;
}

#client-lookup-results tbody tr:nth-child(even) {
    background-color: #f9fafb; /* Tailwind gray-50 */
}

#lawyers-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

#lawyers-table th, #lawyers-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

#lawyers-table th {
    background-color: #e5e7eb; /* Tailwind bg-gray-200 */
    font-weight: bold;
}

#lawyers-table .delete-lawyer-btn {
    background-color: #dc2626; /* Tailwind bg-red-600 */
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#lawyers-table .delete-lawyer-btn:hover {
    background-color: #b91c1c; /* Tailwind bg-red-700 */
}

#add-lawyer-btn {
    background-color: #16a34a; /* Tailwind bg-green-600 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#add-lawyer-btn:hover {
    background-color: #15803d; /* Tailwind bg-green-700 */
}

#add-lawyer-modal button[type="submit"] {
    background-color: #16a34a; /* Tailwind bg-green-600 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#add-lawyer-modal button[type="submit"]:hover {
    background-color: #15803d; /* Tailwind bg-green-700 */
}

#add-lawyer-modal button[type="button"] {
    background-color: #6b7280; /* Tailwind bg-gray-500 */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#add-lawyer-modal button[type="button"]:hover {
    background-color: #4b5563; /* Tailwind bg-gray-600 */
}