/* 1. Resets and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f7f9;
    color: #333;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    min-height: 100vh;
}

/* 2. Layout and Containers */
main {
    flex: 1;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px 20px 80px;
}

.login-container {
    margin: 50px auto;
    max-width: 400px;
    text-align: center;
}

/* 3. Header and Navigation */
header {
    background: #ffffff;           /* White background */
    color: #333;                   /* Dark grey text */
    padding: 1rem 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    height: 30px; /* Slightly larger logo */
    width: auto;
    margin-right: 15px;
    
}

.logo-title h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #333;                   /* Dark grey nav text */
    margin: 0 15px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007bff;                /* Optional: blue on hover to match brand */
    text-decoration: none;
}

.header-info {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

nav a.active {
    color: #0056b3;        /* Blue highlight for active link */
    font-weight: 600;      /* Slightly bolder */
    border-bottom: 2px solid #0056b3; /* Optional underline */
}


.search-bar {
    align-items: center;
    background: #fff;
    border-radius: 5px;
    display: flex;
    height: 40px;
    overflow: hidden;
    width: 300px;
}

.search-bar input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    border-right: none;
    color: #333;
    font-size: 0.9rem;
    height: 100%;
    padding: 5px 10px;
    width: 220px;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    background: #0056b3;
    border: none;
    border-radius: 0 5px 5px 0;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    height: 100%;
    padding: 5px 10px;
    width: 80px;
}

/* 4. Slider and Homepage Sections */
.slider {
    overflow: hidden;
    position: relative;
}

.slides {
    animation: slide 5s infinite;
    display: flex;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    height: 500px;
    object-fit: center;
    width: 100%;
}

.slide-content {
    color: white;
    left: 50%;
    position: absolute;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    top: 50%;
    transform: translate(-50%, -50%);
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

@keyframes slide {
    0%, 45% { transform: translateX(0); }
    50%, 95% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.stats,
.features .feature-list,
.how-it-works .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.stat,
.feature,
.step {
    animation: fadeIn 0.5s;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
}

.stat i,
.feature i,
.step i {
    color: #007bff;
    font-size: 30px;
    margin-bottom: 10px;
}

.stat h3 {
    font-size: 24px;
    margin: 10px 0;
}

.feature h3 {
    font-size: 20px;
    margin: 10px 0;
}

.feature:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

.cta {
    margin: 20px 0;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. Tables */
table,
.crud-table,
.schedule-table {
    background: rgba(255, 255, 255, 0.95);
    border-collapse: collapse;
    margin-top: 20px;
    width: 100%;
}

th,
.crud-table th,
.schedule-table th {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

td,
.crud-table td,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.crud-table,
.schedule-table {
    font-size: 14px;
}

.crud-table th,
.schedule-table th {
    font-weight: bold;
    color: #333;
}

.crud-table tr:nth-child(even),
.schedule-table tr:nth-child(even) {
    background: #f9f9f9;
}

.crud-table tr:hover,
.schedule-table tr:hover {
    background: #f1f1f1;
}

.crud-table th.actions,
.crud-table td.actions {
    min-width: 180px;
    text-align: center;
}

.crud-table td:not(.actions),
.crud-table th:not(.actions) {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    width: 150px;
}

.table-wrapper {
    margin-bottom: 15px;
    overflow-x: auto;
}

.status-badge {
    border-radius: 3px;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
}

.status-pending {
    background: #ffc107;
}

.status-confirmed {
    background: #28a745;
}

.status-cancelled {
    background: #dc3545;
}

.status-completed {
    background: #007bff;
}

.time-slots {
    color: #333;
    display: inline-block;
    font-size: 13px;
    word-wrap: break-word;
}

.not-available {
    color: #dc3545;
    font-size: 13px;
    font-style: italic;
}
/* 6. Login Forms */
form,
.availability-form,
.login-container form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    max-width: 400px;
    padding: 30px;
}

.login-container label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 5px;
    text-align: left;
}

.login-container input {
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    padding: 8px;
    height: 40px; /* Increased height as previously set */
    width: 100%;
    box-sizing: border-box;
}

.login-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.login-container button {
    background: #007bff;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: background 0.3s;
}

.login-container button:hover {
    background: #0056b3;
}

.login-container .signup-prompt {
    margin-top: 10px;
}

.login-container a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}
/* 6. Forms */
.notes-form textarea {
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    padding: 5px;
    resize: vertical;
    width: 100%;
}

.notes-list {
    margin-top: 20px;
}

.note {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
    padding: 10px;
}

.note p {
    margin: 0;
}

.note strong {
    color: #333;
}
/* 6. Forms */
.review-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    max-width: 500px;
    padding: 20px;
}

.review-form textarea {
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    padding: 5px;
    resize: vertical;
    width: 100%;
}

/* 7. Buttons and Actions */
.btn,
.signup-btn,
button,
.crud-table .actions a,
.filter-bar button,
.bulk-action button,
.modal-content button,
.availability-form button,
.login-container button,
.edit-btn,
.btn-add-slot,
.btn-save,
.btn-cancel {
    background: #007bff;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover,
button:hover,
.filter-bar button:hover,
.bulk-action button:hover,
.availability-form button:hover,
.login-container button:hover,
.edit-btn:hover,
.btn-add-slot:hover,
.btn-save:hover,
.btn-cancel:hover {
    background: #0056b3;
}

.signup-btn {
    background: #28a745;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px 20px;
}

.signup-btn:hover {
    background: #218838;
}

.crud-table .actions a {
    font-size: 12px;
    margin-right: 5px;
    padding: 4px 8px;
}

.crud-table .actions a.confirm,
.btn-add-slot {
    background: #28a745;
}

.crud-table .actions a.cancel,
#slot-container .slot-row button {
    background: #dc3545;
}

.crud-table .actions a.complete {
    background: #007bff;
}

.crud-table .actions a:hover,
#slot-container .slot-row button:hover {
    filter: brightness(110%);
}

#slot-container .slot-row button:hover {
    background: #c82333;
}

.btn-add-slot {
    margin: 10px 0;
}

.btn-save {
    background: #007bff;
}

.btn-cancel {
    background: #6c757d;
}

.filter-bar,
.bulk-action {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.filter-bar label {
    align-self: center;
    font-size: 14px;
    margin-right: 5px;
}

.bulk-action select {
    font-size: 14px;
    padding: 5px;
}

.pagination {
    margin-top: 10px;
}

.pagination a {
    color: #007bff;
    margin: 0 2px;
    padding: 5px 10px;
    text-decoration: none;
    transition: background 0.3s;
}

.pagination a.active {
    background: #007bff;
    border-radius: 3px;
    color: white;
}

.pagination a:hover:not(.active) {
    background: #e9ecef;
}
.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    box-sizing: border-box;
    width: 60px;
    height: 30px;
    margin: 0;
    opacity: 1;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none; /* Remove underline from <a> tags */
}
.edit-btn {
    background: #007bff;
    border: none;
}
.edit-btn:hover {
    background: #0056b3;
}
.delete-btn {
    background: #dc3545;
    border: none;
}
.delete-btn:hover {
    background: #b02a37;
}
.actions {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0;
    background: transparent;
}
.actions form {
    padding: 0;
    margin: 0;
    display: inline-block;
}
.note-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0;
    background: transparent;
}
.note-actions form {
    padding: 0;
    margin: 0;
    display: inline-block;
}
.note {
    background: transparent;
    padding: 5px 0;
}
/* Add styles for the .actions container in admin.php */
.actions {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0;
    background: transparent;
}
.actions form {
    padding: 0;
    margin: 0;
    display: inline-block;
}
/* Add styles for the .actions container in admin.php */
.actions {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0;
    background: transparent;
}
.actions form {
    padding: 0;
    margin: 0;
    display: inline-block;
}

/* 8. Modals and Notifications */
.modal {
    background: rgba(0, 0, 0, 0.5);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 10% auto;
    max-height: 70vh;
    max-width: 400px;
    overflow-y: auto;
    padding: 15px;
    width: 50%;
}

#slot-container {
    margin: 10px 0;
}

#slot-container .slot-row {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

#delete-all {
    margin-left: 5px;
}

.toast {
      right: 20px;
      bottom: 20px;
      max-width: 320px;
      padding: 12px 16px;
      border-radius: 8px;
      background: #2e7d32; /* success */
      color: #fff;
      box-shadow: 0 8px 24px rgba(0,0,0,.2);
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
      transition: opacity .2s ease, transform .2s ease;
      z-index: 9999;
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}
.toast.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 9. Miscellaneous */
h2 {
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.signup-prompt {
    color: #333;
    font-size: 0.9rem;
    margin-top: 20px;
    text-align: center;
}

.signup-prompt a,
.login-container a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.signup-prompt a:hover,
.login-container a:hover {
    text-decoration: underline;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 10px;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 10px;
}

footer {
    background: #1c2526;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    z-index: 1000;
}

footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: #4dabf7;
    margin: 0 5px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* 9. Miscellaneous */
.reviews-list {
    margin-top: 20px;
}

.review {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
    padding: 10px;
}

.review p {
    margin: 0;
}

.review strong {
    color: #333;
}
/* 9. Miscellaneous */
.patient-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 20px;
    padding: 15px;
}

.patient-info p {
    margin: 5px 0;
}

.patient-info strong {
    color: #333;
}
/* 9. Miscellaneous */
.note-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}


/* 10. Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .logo-title {
        margin-bottom: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 5px 10px;
    }

    .header-info {
        font-size: 0.85rem;
        text-align: center;
    }

    .search-bar {
        width: 260px;
    }

    .search-bar input {
        padding: 5px 8px;
        width: 200px;
    }

    .search-bar button {
        padding: 5px 8px;
        width: 60px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .stats,
    .features .feature-list,
    .how-it-works .steps {
        flex-direction: column;
    }

    .availability-form {
        flex-direction: column;
    }
    .slide img {
    height: 300px;
    object-fit: center;
    width: 100%;
}
}