/* General Styles */
html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    text-align: center;
}

/* Home Page */
.home-container {
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-container h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.home-container p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
}

.button {
    display: inline-block;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px;
    font-size: 1rem;
}

.button:hover {
    background-color: #0056b3;
}

/* Login Container */
.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f7fa;
}

.login-wrapper-split {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: 600px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background-color: white;
    animation: fadeIn 0.6s ease-in-out;
}

.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-side {
    flex: 1;
    background-color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-side img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.login-form-container {
    width: 100%;
    max-width: 350px;
}

.login-form-container h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #777;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #444;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.register-link {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Styles */
.dashboard-body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.dashboard-container {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 280px;
    background-color: #2c3e50;
    color: white;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar .logo {
    font-size: 26px;
    margin-bottom: 40px;
    color: #3498db;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar nav ul li {
    margin-bottom: 24px;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background-color: #34495e;
}

.sidebar nav ul li a i {
    margin-right: 10px;
    width: 20px;
}

.sidebar-toggle {
    position: absolute; /* Keep it absolute, but now relative to the sidebar */
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
    z-index: 10; /* Ensure it's above other sidebar content */
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f5f7fa;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
    font-size: 18px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.center-search {
    flex-grow: 1;
    margin-right: 20px;
}

.search-bar {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.user-greeting {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin-right: 20px;
}

#datetime {
    font-size: 16px;
    color: #777;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo,
.sidebar.collapsed nav ul li a span {
    display: none;
}

.sidebar.collapsed nav ul li a {
    justify-content: center;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.widget h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2em;
}

.widget p {
    font-size: 2em;
    color: #3498db;
    font-weight: 600;
}

.hidden-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: none;
}

.hidden-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.hidden-section ul {
    list-style: none;
    padding: 0;
}

.hidden-section li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.chart-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ... your existing CSS ... */

/* Patients Page Styles (Updated for Left Alignment) */
.patients-page {
    background-color: #f5f7fa;
    padding: 30px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
}

.patient-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-patient-widget {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.add-patient-widget i {
    margin-right: 8px;
}

.search-container {
    position: relative;
    margin: 20px 0; /* Changed margin to 0 for left alignment */
    width: 60%;
}

#searchClients {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#patientsTable {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 20px 0; /* Changed margin to 0 for left alignment */
}

#patientsTable th, #patientsTable td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

#patientsTable th {
    background-color: #f2f2f2;
    font-weight: 600;
}

#patientsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#patientsTable thead th {
    text-align: center;
}

.details-btn, .edit-btn, .delete-btn {
    padding: 8px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 2px;
}

.details-btn {
    background-color: #3498db;
    color: white;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.details-btn:hover {
    background-color: #2980b9;
}

.edit-btn:hover {
    background-color: #e67e22;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content input {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ... your existing CSS ... */

/* Doctors Page Styles (Updated for Dashboard Consistency) */
.doctors-page {
    background-color: #f5f7fa;
    padding: 30px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.doctors-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-doctor-widget {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.add-doctor-widget i {
    margin-right: 8px;
}

.search-container {
    position: relative;
    margin: 20px 0; /* Changed margin to 0 for left alignment */
    width: 60%;
}

#searchDoctors {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#doctorsTable {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 20px 0; /* Changed margin to 0 for left alignment */
}

#doctorsTable th, #doctorsTable td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

#doctorsTable th {
    background-color: #f2f2f2;
    font-weight: 600;
}

#doctorsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#doctorsTable thead th {
    text-align: center;
}

.details-btn, .edit-btn, .delete-btn {
    padding: 8px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 2px;
}

/* ... rest of your CSS ... */
.details-btn {
    background-color: #3498db;
    color: white;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.details-btn:hover {
    background-color: #2980b9;
}

.edit-btn:hover {
    background-color: #e67e22;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content input,
.modal-content textarea {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.modal-content .submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.modal-content .submit-btn:hover {
    background-color: #2980b9;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Appointments Page Styles (Card Layout) */
.appointments-page {
    background-color: #f5f7fa;
    padding: 30px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
}

.appointment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.appointment-actions h2 {
    flex-grow: 1;
}

.add-appointment-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 20px; /* Increased padding for larger size */
    border-radius: 4px;
    font-size: 1rem; /* Adjusted font size for consistency */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 10px;
    width: auto;
    white-space: nowrap;
}

.add-appointment-btn i {
    margin-right: 5px;
}

.search-container {
    position: relative;
    margin: 20px auto;
    width: 60%;
}

#searchInput {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.appointment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.appointment-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.appointment-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #3498db;
}

.appointment-card p {
    margin-bottom: 8px;
}

.edit-btn,
.details-btn {
    padding: 8px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 2px;
    position: relative;
    display: inline-block;
    bottom: auto;
    left: auto;
    background-color: #81c7e2; /* Lighter blue color */
    color: white;
}

.edit-btn:hover,
.details-btn:hover {
    background-color: #64b5f6; /* Slightly darker light blue on hover */
}



/* Modal Styles (Consistent with Doctors/Clients) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content select,
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content textarea,
.modal-content button {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ... (Your existing CSS) ... */

/* Calendar Page Styles (Integrated with Dashboard) */
.calendar-page {
    background-color: #f5f7fa;
    padding: 30px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.calendar-page .filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.calendar-page .filters label {
    font-weight: bold;
    margin-right: 5px;
}

.calendar-page .filters select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

#calendar {
    margin-top: 20px;
    flex-grow: 1;
}

.fc-button,
.fc-prev-button,
.fc-next-button,
.fc-dayGridMonth-button,
.fc-timeGridWeek-button,
.fc-timeGridDay-button {
    background-color: #3498db; /* Primary button color */
    color: white;
    border: none;
    border-radius: 6px; /* Rounded corners like other buttons */
    padding: 8px 12px; /* Adjust padding */
    margin: 2px;
    cursor: pointer;
    font-size: 0.9rem; /* Adjust font size if needed */
    transition: background-color 0.3s ease;
    text-transform: capitalize;
}

.fc-button:hover,
.fc-prev-button:hover,
.fc-next-button:hover,
.fc-dayGridMonth-button:hover,
.fc-timeGridWeek-button:hover,
.fc-timeGridDay-button:hover {
    background-color: #2980b9; /* Darker shade on hover */
}

.calendar-page .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.calendar-page .modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%; /* Adjust width as needed */
    max-width: 600px;
    position: relative;
}

.calendar-page .modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.calendar-page .modal-content p {
    margin-bottom: 10px;
}

.calendar-page .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.calendar-page .close:hover,
.calendar-page .close:focus {
    color: black;
    text-decoration: none;
}

.fc-daygrid-day-frame {
    height: 70px; /* Adjust day cell height if needed */
}

.fc-daygrid-event {
    font-size: 0.85em; /* Adjust event text size if needed */
    padding: 2px 5px;
    border-radius: 4px;
}

/* Ensure the main content area takes up the remaining space */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.back-button {
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* Sidebar styles (assuming these are already in your style.css) */
.sidebar {
    background-color: #2c3e50;
    color: white;
    width: 250px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: bold;
}


.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background-color: #34495e;
}

.sidebar nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar nav ul li a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed nav ul li a span {
    display: none;
}

.sidebar .sidebar-toggle {
    background: none;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
    display: none; /* Show if you want a toggle button within the sidebar */
}

/* Responsive adjustments for sidebar toggle */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    }

    .sidebar.collapsed {
        left: 0;
    }

    .sidebar .sidebar-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .main-content {
        padding-left: 20px; /* Adjust padding when sidebar is visible */
    }
}

/* ... (Your existing CSS) ... */

/* Settings Page Styles (Updated with Modals and Preferences) */
.settings-page {
    background-color: #f5f7fa;
    padding: 30px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.settings-page h1 {
    color: #333;
    margin-bottom: 20px;
}

.settings-page .settings-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Limit the width of the settings sections */
}

.settings-page .settings-section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.settings-page .settings-button {
    background-color: #3498db; /* Primary button color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.settings-page .settings-button:hover {
    background-color: #2980b9; /* Darker shade on hover */
}

.settings-page .preference-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.settings-page .preference-item label {
    flex-basis: 120px;
    color: #555;
    font-weight: bold;
    margin-right: 10px;
}

.settings-page .preference-item select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    flex-grow: 1;
}

/* Modal Styles */
.settings-page .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.settings-page .modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.settings-page .modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.settings-page .modal-content label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.settings-page .modal-content input[type="text"],
.settings-page .modal-content input[type="email"],
.settings-page .modal-content input[type="tel"],
.settings-page .modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

.settings-page .modal-content .submit-btn {
    background-color: #3498db; /* Primary button color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.settings-page .modal-content .submit-btn:hover {
    background-color: #2980b9; /* Darker shade on hover */
}

.settings-page .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.settings-page .close:hover,
.settings-page .close:focus {
    color: black;
    text-decoration: none;
}

/* Ensure the main content area takes up the remaining space */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard-header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.back-button {
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* Sidebar styles (assuming these are already in your style.css) */
.sidebar {
    background-color: #2c3e50;
    color: white;
    width: 250px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background-color: #34495e;
}

.sidebar nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar nav ul li a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed nav ul li a span {
    display: none;
}

.sidebar .sidebar-toggle {
    background: none;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
    display: none; /* Show if you want a toggle button within the sidebar */
}

/* Responsive adjustments for sidebar toggle */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    }

    .sidebar.collapsed {
        left: 0;
    }

    .sidebar .sidebar-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .main-content {
        padding-left: 20px; /* Adjust padding when sidebar is visible */
    }
}





.reports-page {
    padding: 20px;
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.search-container input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 1;
    margin-right: 10px;
}

.search-container button {
    padding: 10px 15px;
    background-color: #007bff; /* Primary blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-results {
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
}

.search-results ul {
    list-style: none;
    padding: 0;
}

.search-results li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    display: flex;
    justify-content: space-between; /* To align name and prescription */
    align-items: center;
}

.search-results li:last-child {
    border-bottom: none;
}

.client-actions button {
    padding: 10px 15px;
    background-color: #28a745; /* Success green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.client-actions h3 {
    margin-top: 15px;
    color: #333;
}

.client-actions ul#prescriptionHistory {
    list-style: none;
    padding: 0;
}

.client-actions ul#prescriptionHistory li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-actions ul#prescriptionHistory li:last-child {
    border-bottom: none;
}

.client-actions ul#prescriptionHistory li button {
    background-color: #17a2b8; /* Info blue */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
}

.report-details {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    background-color: #f9f9f9;
}

.report-details h2 {
    margin-top: 0;
    color: #333;
}

.report-details p {
    margin-bottom: 10px;
}

.report-options button {
    padding: 10px 15px;
    background-color: #17a2b8; /* Info blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.no-results {
    color: #dc3545; /* Danger red */
    font-style: italic;
}

.prescription-info {
    font-size: 0.8em;
    color: green;
    margin-left: 10px;
}

/* Updated Modal CSS */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    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 */
    display: none; /* Center the content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust as needed */
    max-width: 600px; /* Limit maximum width */
    border-radius: 5px;
    position: relative;
    
}

.modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.prescription-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555; /* Darker text for labels */
}

.prescription-form input[type="text"],
.prescription-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px; /* More spacing */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em; /* Slightly larger font */
}

.prescription-form textarea {
    min-height: 100px;
}

.prescription-form button[type="submit"],
.prescription-form button[type="button"] {
    background-color: #007bff; /* Primary blue */
    color: white;
    padding: 12px 20px; /* More padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 10px;
}

.prescription-form button[type="button"].cancel {
    background-color: #dc3545; /* Danger red */
}


.doctors-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doctor-card {
    background: linear-gradient(135deg, #1a1a2e 80%, #0f3460 100%);
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,255,255,0.15), 0 1.5px 4px 0 rgba(0,0,0,0.07);
    overflow: hidden;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1.5px solid #00fff1;
}

.doctor-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 40px 0 #00fff1, 0 1.5px 4px 0 rgba(0,0,0,0.09);
    border-color: #00fff1;
}

.doctor-card-photo {
    width: 100%;
    height: 180px;
    background: #16213e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.doctor-card-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #00fff1;
    object-fit: cover;
    box-shadow: 0 0 16px #00fff1;
    background: #fff;
}

.doctor-card-info {
    padding: 1.2rem 1rem;
    text-align: center;
}

.doctor-card-info h3 {
    margin: 0 0 0.4em 0;
    font-size: 1.35em;
    letter-spacing: 0.02em;
}

.doctor-card-info .specialization {
    color: #00fff1;
    font-weight: 600;
    margin-bottom: 0.7em;
}

.doctor-card-info .email,
.doctor-card-info .phone {
    font-size: 0.98em;
    color: #b2becd;
    margin-bottom: 0.3em;
}

.doctor-card-actions {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 0.6em;
}

.icon-btn {
    background: #00fff1;
    color: #16213e;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,255,255,0.09);
}

.icon-btn:hover {
    background: #fff;
    color: #00fff1;
    box-shadow: 0 4px 16px #00fff1;
}

.clients-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-card {
    background: linear-gradient(135deg, #232526 80%, #414345 100%);
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,255,255,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.07);
    overflow: hidden;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1.5px solid #00fff1;
}

.client-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 40px 0 #00fff1, 0 1.5px 4px 0 rgba(0,0,0,0.09);
    border-color: #00fff1;
}

.client-card-info {
    padding: 1.2rem 1rem;
    text-align: center;
}

.client-card-info h3 {
    margin: 0 0 0.4em 0;
    font-size: 1.25em;
    letter-spacing: 0.02em;
}

.client-card-info .email,
.client-card-info .phone,
.client-card-info .address {
    font-size: 0.98em;
    color: #b2becd;
    margin-bottom: 0.3em;
}

.client-card-actions {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 0.6em;
}

.icon-btn {
    background: #00fff1;
    color: #232526;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,255,255,0.09);
}

.icon-btn:hover {
    background: #fff;
    color: #00fff1;
    box-shadow: 0 4px 16px #00fff1;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
    min-height: 100vh;
    padding: 32px 24px 24px 24px;
}

.toast-message {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast-message.show {
    visibility: visible;
    opacity: 1;
}

/* Toasts */
.toast-message { background-color: #2b547a !important; }

/* Hovers */
.button:hover,
button:hover,
.submit-btn:hover,
.add-doctor-widget:hover,
.add-appointment-btn:hover,
.details-btn:hover,
.fc-button:hover,
.fc-prev-button:hover,
.fc-next-button:hover,
.fc-dayGridMonth-button:hover,
.fc-timeGridWeek-button:hover,
.fc-timeGridDay-button:hover {
  background-color: #008FDC !important;
}

/* Sections previously using #007bff backgrounds */
.image-side { background-color: #00A6FF !important; }

/* Sidebar brand background only (keep text colors) */
.sidebar { background-color: #00A6FF !important; }
.sidebar nav ul li a:hover,
.sidebar nav ul li a.active { background-color: #008FDC !important; }