/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 15px auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
}

.btn-secondary:hover {
    background-color: #1e7e34;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /*padding: 10px 20px;*/
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 15px auto;
    padding: 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, #007bff, #0056b3);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-container {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Search Section */
.search-section {
    background-color: #f4f4f9;
    padding: 40px 20px;
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-box h3 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 15px;
}

.search-box form label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.search-box form input, 
.search-box form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
}

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

    .hero-text h1 {
        font-size: 28px;
    }

    .search-box {
        margin-bottom: 30px;
    }
}

/* Admin Login Page */
.login-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.login-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Admin Dashboard */
.dashboard {
    padding: 40px 20px;
    background-color: #f4f4f9;
}

.dashboard-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.dashboard-container p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #007bff;
}

.card p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

.card .btn-secondary {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.card .btn-secondary:hover {
    background-color: #1e7e34;
}

/* Quick Actions */
.dashboard-actions h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.action-buttons .btn-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    width: 210px;
    display: inline-block;
}

.action-buttons .btn-primary:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    max-width: 600px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.doctors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.doctors-table th,
.doctors-table td {
    padding: 10px;
    text-align: left;
}

.doctors-table th {
    background-color: #f2f2f2;
}

.doctors-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn {
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
}

.btn:hover {
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark background for the modal */
    overflow: auto;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto; /* Center the modal */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Adjust the width of the modal */
    max-width: 800px; /* Max width of modal */
    border-radius: 8px; /* Rounded corners for the modal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for better effect */
}

/* Close Button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Add Doctor Form */
form {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
padding-top: 10px;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="email"],
form select {
    padding: 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="email"]:focus,
form select:focus {
    border-color: #007bff; /* Highlight border on focus */
    outline: none;
}

form label {
    font-size: 16px;
    color: #333;
}

form button[type="submit"] {
    grid-column: span 2; /* Make the submit button span across both columns */
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Add Doctor Form */
form {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
padding-top: 10px;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="email"],
form select,
form input[type="file"] {
    padding: 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="email"]:focus,
form select:focus,
form input[type="file"]:focus {
    border-color: #007bff;
    outline: none;
}

form label {
    font-size: 16px;
    color: #333;
}

form button[type="submit"] {
    grid-column: span 2;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .modal-content {
        width: 80%;
    }

    form {
        grid-template-columns: 1fr;
    }

    form button[type="submit"] {
        grid-column: span 1;
    }
}

/* Checkbox Container */
.form-group input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

.form-group input[type="checkbox"] + label {
    position: relative;
    cursor: pointer;
    padding-left: 30px; /* Space for custom checkbox */
    font-size: 16px;
    line-height: 20px;
    display: inline-block;
    color: #333;
}

/* Custom Checkbox Design */
.form-group input[type="checkbox"] + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #007BFF;
    border-radius: 4px; /* Rounded corners */
    background: #fff;
    transition: all 0.3s ease;
}

/* Checkmark */
.form-group input[type="checkbox"]:checked + label::after {
    content: "✔";
    position: absolute;
    left: 3px;
    top: 1px;
    font-size: 16px;
    color: #fff;
}

/* Checkbox Background on Check */
.form-group input[type="checkbox"]:checked + label::before {
    background: #007BFF;
    border-color: #007BFF;
}

/* Hover Effects */
.form-group input[type="checkbox"] + label:hover::before {
    border-color: #0056b3;
}

/* Disable Checkbox Styling (Optional) */
.form-group input[type="checkbox"]:disabled + label {
    color: #aaa;
    cursor: not-allowed;
}

.form-group input[type="checkbox"]:disabled + label::before {
    background: #e9ecef;
    border-color: #ced4da;
}

/* The Modal (background) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding-top: 50px;
}

/* Modal Content (Image) */
.modal-content-container {
    display: inline-block;
    text-align: center;
}

.modal-content {
    max-width: 80%;
    /* max-height: 60%; */
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal Text (National ID) */
.modal-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Edit Section */
.edit-section {
    background-color: #fff;
    padding: 40px 30px;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.edit-section form {
    display: flex;
    flex-direction: column;
}

.edit-section form label {
    font-size: 16px;
    margin-bottom: 8px;
}

.edit-section form input {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.edit-section form input[type="text"],
.edit-section form input[type="number"],
.edit-section form input[type="email"],
.edit-section form input[type="password"],
.edit-section form input[type="date"] {
    width: 100%;
}

.edit-section form button {
    padding: 12px;
    background-color: #2d3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-section form button:hover {
    background-color: #1e2a35;
}

.edit-section .error {
    color: red;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Modal for Add Section (Used for Doctors, Patients, and Pharmacies) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    float: right;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #2d3e50;
    padding: 10px;
    text-align: center;
    color: #fff;
}

footer p {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .navbar ul {
        flex-direction: column;
        margin-top: 15px;
    }

    .navbar ul li {
        margin-bottom: 10px;
    }

    .edit-section {
        padding: 30px 20px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr; /* Stack cards in one column */
    }

    .modal-content {
        width: 90%; /* Make modal more responsive */
    }
}

form input:focus-visible {
    border-color: #007bff; /* Ensure focus state is visible */
    outline: none;
}

.modal-content-container img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain; /* Ensure image doesn't distort */
}



/* .container {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-wrapper h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-wrapper label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    font-weight: bold;
    color: #555;
}

.login-wrapper input,
.login-wrapper select,
.login-wrapper button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.login-wrapper button {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.login-wrapper button:hover {
    background: #0056b3;
}

.login-wrapper p {
    font-size: 14px;
    color: #666;
} */

.login-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
}

.login-wrapper h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-wrapper label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    font-weight: bold;
    color: #555;
}

.login-wrapper input,
.login-wrapper select,
.login-wrapper button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.login-wrapper button {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.login-wrapper button:hover {
    background: #0056b3;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f4f4f9;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table .btn {
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.table .btn-secondary {
    background-color: #28a745;
}

.table .btn-secondary:hover {
    background-color: #218838;
}

.edit-section {
    background-color: #fff;
    padding: 40px;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.edit-section form {
    display: flex;
    flex-direction: column;
}

.edit-section form label {
    font-size: 16px;
    margin-bottom: 8px;
}

.edit-section form input {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.edit-section form input[type="text"],
.edit-section form input[type="number"],
.edit-section form input[type="email"],
.edit-section form input[type="password"],
.edit-section form input[type="date"] {
    width: 100%;
}

.edit-section form button {
    padding: 12px;
    background-color: #2d3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-section form button:hover {
    background-color: #1e2a35;
}

/* Profile Section */
.profile-container {
    background-color: #fff;
    padding: 40px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 30px auto;
}

.profile-container h2 {
    text-align: center;
    font-size: 28px;
    color: #007bff;
    margin-bottom: 20px;
}

/* Grid Layout for Profile Info */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-grid .form-group {
    margin-bottom: 20px;
}

.profile-grid label {
    font-weight: bold;
    color: #333;
}

.profile-grid p {
    font-size: 16px;
    color: #555;
}

/* Profile Image */
.profile-img-container {
    text-align: center;
    margin-bottom: 30px;
}

.doctor-img {
    border-radius: 8px;
    border: 2px solid #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Edit Profile Button */
.edit-profile-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.edit-profile-link:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #2d3e50;
    padding: 10px;
    text-align: center;
    color: #fff;
}

footer p {
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .doctor-img {
        max-width: 90%;
        margin-top: 15px;
    }

    .edit-profile-link {
        padding: 10px 20px;
    }
}

/* Add Visit Page */
.add-visit-page {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 30px auto;
}

/* Heading */
.add-visit-page h2 {
    font-size: 32px;
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
}

/* Patient Search Section */
.search-patient {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-patient h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.search-patient .form-group {
    margin-bottom: 20px;
}

.search-patient label {
    font-size: 16px;
    color: #333;
}

.search-patient input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
}

.search-patient button {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.search-patient button:hover {
    background-color: #0056b3;
}

/* Patient Info Section */
.patient-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.patient-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.patient-info p {
    font-size: 16px;
    color: #555;
}

.patient-info strong {
    font-weight: bold;
}

/* Add Visit Form */
.add-visit-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.add-visit-form h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.add-visit-form .form-group {
    margin-bottom: 20px;
}

.add-visit-form label {
    font-size: 16px;
    color: #333;
}

.add-visit-form textarea,
.add-visit-form input[type="date"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.add-visit-form button {
    padding: 12px 25px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.add-visit-form button:hover {
    background-color: #218838;
}

/* Error Message */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: #2d3e50;
    padding: 10px;
    text-align: center;
    color: #fff;
}

footer p {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .add-visit-page {
        padding: 20px;
    }

    .search-patient button {
        width: 100%;
    }

    .add-visit-form button {
        width: 100%;
    }
}

/* Add Visit Page Styles */
.add-visit-page {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 30px auto;
}

.add-visit-page h2 {
    font-size: 28px;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

.search-patient, .add-visit-form, .patient-info {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-patient h3, .add-visit-form h3, .patient-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.search-patient .form-group, .add-visit-form .form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #007bff;
    outline: none;
}

.patient-info p {
    font-size: 14px;
    color: #555;
}

.add-visit-form textarea {
    resize: vertical;
    min-height: 100px;
}

.patient-info strong {
    font-weight: bold;
}

/* Button Styles */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
}

.btn-secondary:hover {
    background-color: #1e7e34;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.error-message {
    color: #e74c3c;
    font-weight: bold;
}

/* Dropdown for Active Search */
#medicineSearch {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#medicineList {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

#medicineList li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

#medicineList li:hover {
    background: #f0f0f0;
}

#medicineList li:last-child {
    border-bottom: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: black;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .add-visit-page {
        padding: 20px;
    }

    .modal-content {
        width: 80%;
    }
}

/* Patient Info Page Styles */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.container h2 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 10px;
}

.container p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

.table th,
.table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    background-color: #f4f4f4;
    font-size: 16px;
    color: #333;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table .btn {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.table .btn-secondary {
    background-color: #28a745;
}

.table .btn-secondary:hover {
    background-color: #218838;
}

/* Modal Styles */
#modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

#modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#modal-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #007bff;
}

#modal-content ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

#modal-content ul li {
    padding: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

#modal-content ul li:last-child {
    margin-bottom: 0;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #c82333;
}


/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }

    .table th,
    .table td {
        font-size: 14px;
    }
}

.btn {
    display: inline-block;
    background-color: #007bff; /* Primary blue color */
    color: #fff; /* White text */
    padding: 10px 20px; /* Padding around the text */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-weight: 600; /* Bold text */
    text-align: center; /* Center the text */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    cursor: pointer; /* Pointer cursor on hover */
}

.pharmacies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

.pharmacies-table th,
.pharmacies-table td {
    border: 1px solid #dddddd;
    padding: 12px;
}

.pharmacies-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.pharmacies-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pharmacies-table tr:hover {
    background-color: #f1f1f1;
}

.pharmacies-table .btn {
    padding: 6px 12px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
}

.pharmacies-table .btn-prim {
    background-color: #007bff;
}

.pharmacies-table .btn-secondary {
    background-color: #28a745;
}

.pharmacies-table .btn-danger {
    background-color: #dc3545;
}

/* report.css */
.container {
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    border-radius: 10px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.report-table th, .report-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.report-table th {
    background: #f2f2f2;
    font-weight: bold;
}

.report-table tr:nth-child(even) {
    background: #f9f9f9;
}

.report-table tr:hover {
    background: #f1f1f1;
}

.notifications {
    background: #f8d7da;
    padding: 15px;
    margin: 20px 0;
    border-left: 5px solid #dc3545;
    border-radius: 5px;
}
.notifications h4 {
    margin: 0 0 10px;
    color: #721c24;
}
.notifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notifications ul li {
    margin: 5px 0;
    color: #721c24;
}
.notifications ul li span {
    font-weight: bold;
}

.low-stock-container {
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #dc3545;
    border-radius: 5px;
    background-color: #f8d7da;
}
.low-stock-container h2 {
    color: #721c24;
    text-align: center;
}
.low-stock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.low-stock-table th, .low-stock-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.low-stock-table th {
    background-color: #f5c6cb;
    color: #721c24;
}
.low-stock-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.low-stock-table tr:hover {
    background-color: #f1f1f1;
}
.btn-back {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
.btn-back:hover {
    background-color: #0056b3;
}

/* Simplified Footer Styles */
footer {
    background-color: #2d2d2d;
    color: #f1f1f1;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 5px 0;
    color: #d1d1d1;
    line-height: 1.5;
}

form div {
    display: flex;
    flex-direction: column; /* Stack inputs and errors vertically */
}

/* General styles for modal */
#add-doctor-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#add-doctor-modal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 75%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

#add-doctor-modal h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

#add-doctor-modal label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

#add-doctor-modal input,
#add-doctor-modal select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

#add-doctor-modal button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

#add-doctor-modal button:hover {
    background-color: #0056b3;
}

#add-doctor-modal .close-btn {
    font-size: 18px;
    color: #aaa;
    float: right;
    cursor: pointer;
}

#add-doctor-modal .close-btn:hover {
    color: #333;
}

/* Add spacing for error messages */
#add-doctor-modal span {
    display: block;
    margin-top: -10px;
    margin-bottom: 10px;
    color: #e74c3c;
    font-size: 12px;
}

/* Animation for modal appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background: #ffffff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.close-btn {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}

/* Modal animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Base styles for the table */
.manage-doctors table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.manage-doctors table th,
.manage-doctors table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}


/* Base Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}

/* Responsive Modal for Small Screens */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-content label {
        font-size: 14px;
    }

    .modal-content input,
    .modal-content select {
        font-size: 14px;
        padding: 8px;
    }

    .modal-content button {
        font-size: 14px;
        padding: 10px;
    }
}

-----------------------------------------------------------

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 15px auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
}

.btn-secondary:hover {
    background-color: #1e7e34;
}

/* Responsive Table */
@media (max-width: 768px) {
    .doctors-table, .table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        overflow-x: auto;
    }

    .doctors-table thead, .table thead {
        display: none;
    }

    .doctors-table tr, .table tr {
        display: block;
        border: 1px solid #ddd;
        margin-bottom: 10px;
        background: #fff;
        padding: 10px;
    }

    .doctors-table td, .table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .doctors-table td::before, .table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        color: #007bff;
    }
}

/* Responsive Forms */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: none;
        padding: 15px;
    }

    .form-group {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar ul li {
        text-align: center;
    }
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        padding: 12px;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding-top: 10px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 10px;
    }
}

/* Close Button in Add Doctor Modal */
#add-doctor-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

#add-doctor-modal .close-btn:hover {
    color: #e74c3c; /* Red hover effect */
    transform: scale(1.2); /* Slight enlargement on hover */
}

/* Improved X Button Styling */
#add-doctor-modal .close-btn::before {
    content: "\00D7"; /* Unicode for X */
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
}

---------------------------------------------------------



/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
}

.btn-secondary:hover {
    background-color: #1e7e34;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 15px auto;
    padding: 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Table Styles */
.doctors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.doctors-table th,
.doctors-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.doctors-table th {
    background-color: #f2f2f2;
}

.doctors-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        margin-top: 15px;
    }

    .doctors-table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        overflow-x: auto;
    }

    .doctors-table thead {
        display: none;
    }

    .doctors-table tr {
        display: block;
        border: 1px solid #ddd;
        margin-bottom: 10px;
        background: #fff;
        padding: 10px;
    }

    .doctors-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .doctors-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        color: #007bff;
    }
}

/* Button Styles */
.btn {
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
}

.btn:hover {
    opacity: 0.9;
}

/* Modal Styling */
#add-patient-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

#add-patient-modal .close-btn:hover {
    color: #e74c3c;
}

/* General Form Styling */
form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="email"],
form select,
form textarea {
    padding: 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

form button[type="submit"] {
    grid-column: span 2;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-group {
        display: flex;
        flex-direction: column;
    }

    form {
        grid-template-columns: 1fr;
    }

    form button[type="submit"] {
        grid-column: span 1;
    }
}


