.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    font-size: 50px;
    text-align: center;
}


.title h1{
    text-align: center;
}

.day {
    border: 1px solid #ddd;
    padding: 10px;
}
.booked {
    color: red;
}
.available {
    color: green;
}
li {
    list-style-type: none;
}
a {
    color: inherit;
    text-decoration: inherit;
}
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin: 10px 0;
}
/**/

.today {
    background-color: #ffffcc; /* light yellow */
    border: 2px solid #ffa500;
}
.weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}


/* condition logic style for calendar*/
.disabled{
    color: grey;
}

/*.not-current {*/
/*    color: #bbb;*/
/*    background-color: #f5f5f5;*/
/*    pointer-events: none;*/
/*}*/

/*--------------------------------------------------------------------------------------------------------------------*/
/*
Booking page style
*/
/* Bigger Booking Form */
#booking_form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 1.25em;
}

#booking_form input,
#booking_form select,
#booking_form textarea {
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 20px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

#booking_form p {
    text-align: left;
}

.submit_button {
    width: 100%;
    padding: 16px;
    background-color: #28a745;
    border: none;
    color: white;
    font-size: 1.25em;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit_button:hover {
    background-color: #218838;
}

@media screen and (max-width: 600px) {
    #booking_form {
        margin: 20px 10px;
        padding: 25px;
    }

    #booking_form input,
    #booking_form select,
    #booking_form textarea,
    .submit_button {
        font-size: 1.1em;
        padding: 14px;
    }
}
.back-button {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #ddd;
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #ccc;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/* Index responsive design */
@media screen and (max-width: 768px) {
    .calendar {
        grid-template-columns: repeat(7, 1fr); /* fewer columns on smaller screens */
        font-size: 28px;
        gap: 5px;
    }

    .month-navigation {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 18px;
    }

    .day {
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .calendar {
        grid-template-columns: repeat(7, 1fr); /* 2 columns on phones */
        font-size: 24px;
    }

    .month-navigation {
        font-size: 16px;
    }

    .month-navigation h3{
        margin: 5px 0;
    }

    h1 {
        font-size: 26px;
        text-align: center;
    }

    .day {
        padding: 8px;
    }
}
/*--------------------------------------------------------------------------------------------------------------------*/
/* Slot design */
.slot-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.slot {
    padding: 20px 30px;
    font-size: 1.3em;
    text-align: center;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.slot.available {
    background-color: #e6ffe6;
    color: #28a745;
    border: 2px solid #28a745;
    cursor: pointer;
}

.slot.booked {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 2px solid #cc0000;
}

.slot a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.slot.available:hover {
    background-color: #d4f7d4;
    transform: scale(1.03);
}
/*--------------------------------------------------------------------------------------------------------------------*/
/* Header */
/* Header/Navbar */
.main-header {
    background-color: #ffffff; /* white background */
    color: black;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Hamburger Icon */
.hamburger {
    font-size: 2em;
    color: black; /* black menu icon */
    cursor: pointer;
    display: none;
    user-select: none;
}

/* Menu Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: black; /* black text on white header */
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-links li a:hover {
    background-color: #f0f0f0;
}

/* Responsive Menu */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white; /* ✅ White background */
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 10;
        border-top: 1px solid #ccc; /* ✅ Optional top border */
        padding-bottom: 20px; /* ✅ Extra height */
    }

    #menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #ccc; /* ✅ Border between items */
    }

    .nav-links li a {
        color: black;               /* ✅ Black text */
        padding: 18px 20px;         /* ✅ Taller links */
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links li a:hover {
        background-color: #f0f0f0;  /* ✅ Light hover background */
    }
}

#menu-toggle {
    display: none;
}

/*--------------------------------------------------------------------------------------------------------------------*/


/* Logo style */
.logo-img {
    height: 50px;
    width: auto;
}

/* Adjust for mobile */
@media screen and (max-width: 600px) {
    .logo-img {
        height: 40px;
    }
}
.logo a {
    display: flex;
    align-items: center;
}
/*--------------------------------------------------------------------------------------------------------------------*/

/* Typography and body formatting */
body {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #222;
    padding: 20px 20px 0;
    margin: 0;
}

body#index {
    padding: 0;
}


/* Paragraph styling */
p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Headings */
h1, h2 {
    margin-top: 30px;
    color: #333;
}

/* Ordered and unordered list styling */
ol, ul {
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 20px;
}

ol li {
    list-style-type: decimal;
    margin-bottom: 10px;
    text-align: left;
}

ul li {
    list-style-type: disc;
    margin-bottom: 10px;
    text-align: left;
}

/*---------------------------------------------------------------------------------------------*/
/* doctor.html styling */
.doctor-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.doctor-image {
    flex: 1 1 40%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    object-fit: cover;
}

.doctor-text {
    flex: 1 1 60%;
    text-align: justify;
}

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

    .doctor-text {
        padding-left: 0;
    }

    .doctor-image {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.article-container a{
    color: green;
}

/*---------------------------------------------------------------------------------------------*/
/* confirmation style */
.confirmation-page {
    text-align: center;
    padding: 20px 20px;
}

.confirmation-page h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.confirmation-page p {
    font-size: 1.1em;
    margin: 10px 0;
}

.confirmation-page .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007b85;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 10px;
}
/*---------------------------------------------------------------------------------------------*/
/* contact style */

.contact-container a{
    color: blue;
}

.contact-flex-wrapper iframe {
    flex: 1 1 400px;
    min-height: 300px;
    width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-flex-wrapper {
        flex-direction: column;
        align-items: center;
    }
}
/* Login/Signup styling Allauth demo */
/* ===== LOGIN PAGE STYLE (like demo) ===== */
/* ===== AUTHENTICATION STYLES (Login / Signup / Password Reset) ===== */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding-top: 40px;
}

.auth-box {
    background-color: #fff;
    width: 100%;
    max-width: 400px;
    padding: 0 35px 35px 35px; /* unified size */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-box h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.auth-box p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #444
}

.form-check-input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

form-check-input:checked {
    border-color: #28a745;
    background-color: #28a745;
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.form-check-label {
    cursor: pointer;
    color: #333;
    user-select: none;
}

.password-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.show-password-label {
    font-size:0.9em;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    cursor: pointer;
    user-select: none;
}

.show-password-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff;
}

@media (max-width:600px) {
    .show-password-label {
        font-size: 1em;
    }

    .show-password-checkbox {
        width: 20px;
        height: 20px;
    }
}

.auth-form label,
.auth-form .form-group label {
    font-weight: 500;
    margin-bottom: 0;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: auto;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    border-color: #007bff;
    outline: none;
}

/* Forgot password link under password */
.auth-form .forgot-password {
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.auth-form .forgot-password a,
.auth-box a {
    color: #007bff;
    text-decoration: none;
}

.auth-form .forgot-password a:hover,
.auth-box a:hover {
    text-decoration: underline;
}

/* Finalized Auth Form Checkbox + Meta Styling */
.form-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Unified checkbox design */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
}

.form-check-input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-check-input:checked {
    border-color: #28a745;
    background-color: #28a745;
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.form-check-label {
    cursor: pointer;
    color: #333;
    user-select: none;
}

/* Forgot password override */
.forgot-password {
    font-size: 0.9rem;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Bottom checkbox margin */
.remember-me-row {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Responsive tweaks */
@media screen and (max-width: 480px) {
    .form-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-check {
        font-size: 1rem;
    }

    .form-check-input {
        width: 22px;
        height: 22px;
    }
}

/* Password rule list under input */
/*.password-help-group {*/
/*    padding: 0;*/
/*    margin: 0;*/
/*}*/

.password-help {
    margin-top: 10px;
    font-size: 0.75em;
    color: #555;
    padding-left: 0;
    text-align: left;
    list-style-type: disc;
}

.password-help li {
    list-style-type: disc;
    margin-bottom: 4px;
}

.password-help ol ul {
    margin-left: 0;
    margin-bottom: 0;
    padding: 5px;
}

/* Links under form (used in password reset + signup) */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------- */

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: absolute;
    top: 50px; /* Give it some space from the top */
    /*left: 50x;*/
    transform: translateX(10%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 1px;*/
    width: 80%;
    max-width: 80%;
    padding: 0 16px; /* padding for smaller screens */
    box-sizing: border-box;
}

/* Toast card */
.toast {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    animation: toast-slide-in 0.4s ease;
    transition: opacity 0.5s ease;
    gap: 12px;
    background-color: #f5f5f5;
}

/* Message types */
.toast-success {
    background-color: #e6f4ea;
    color: #1e4620;
    border-left: 5px solid #34a853;
}

.toast-error {
    background-color: #fdecea;
    color: #611a15;
    border-left: 5px solid #d93025;
}

.toast-warning {
    background-color: #fff4e5;
    color: #663c00;
    border-left: 5px solid #f9ab00;
}

.toast-info {
    background-color: #e7f3fe;
    color: #084298;
    border-left: 5px solid #2196f3;
}

.toast-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.toast-text {
    flex: 1;
    padding-right: 10px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    margin-left: 8px;
}

.toast-close:hover {
    color: #555;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ------------------------------------------------------------- */
/* The send email-verification countdown styles */
.resend-form {
    text-align: center;
    margin-top: 20px;
}

.resend-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: #d1d1d1;
    color: #ffffff;
    cursor: not-allowed;
    transition: all 0.3s ease;
    min-width: 160px;
    line-height: 1.3;
}

.resend-button .button-timer {
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.85;
}

.resend-button.active {
    background-color: #28a745;
    cursor: pointer;
}

.resend-button.active:hover {
    background-color: #218838;
}

.resend-button:disabled {
    opacity: 0.8;
}

/* Ensure the resend form input matches others */
.auth-form input.auth-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.auth-form input.auth-input:focus {
    border-color: #007bff;
    outline: none;
}
