body, html {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 150px;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 7%;
}

.motto-container {
    flex: 1;
    text-align: center;
}

.motto {
    font-size: 4rem;
    font-weight: bold;
    color: #000000;
    line-height: 1.3;
}

.login-container {
    flex: 1;
    max-width: 400px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.logo {
    display: block;
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
}

.success {
    color: white;
    background: #2a394d;
    border: 1px solid #122130;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

.error {
    color: #b00020;
    background: #ffe6e6;
    border: 1px solid #b00020;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

.error-msg-calendar {
    display: none;
    width: fit-content;
    max-width: 100%;
    margin-top: 4px;
}

.loading-text {
    color: #777;
    font-size: 0.9em;
}

#toastContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-top: 10px;
    padding: 15px 20px;
    border-radius: 4px;
    animation: slideIn 0.5s, fadeOut 0.5s 10s forwards;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

form {
    width: 100%;
}

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

.form-control {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    outline: none;
    resize: none;
}

.form-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: #999;
    font-size: 16px;
    padding: 0 4px;
    pointer-events: none;
    transition: 0.2s ease all;
}

.form-control:focus {
    border-color: #2196f3;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -10px;
    left: 10px;
    color: #2196f3;
    font-size: 12px;
}

.form-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #122130;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #2a394d;
}

.phone-group {
    position: relative;
}

.phone-group .phone-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 0.95em;
    pointer-events: none;
}

.phone-group .form-control {
    padding-left: 50px; 
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    min-height: 70px;
}

.checkbox-item:hover {
    background: #eef3f7;
    border-color: #cbd3da;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #007bff;
}

.checkbox-item label {
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.checkbox-item label .price {
    font-size: 0.8em;
    color: #555;
    font-weight: 500;
}

.checkbox-item label .duration {
    font-size: 0.8em;
    color: #555;
}

.checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #007bff;
}

.checkbox-item input[type="checkbox"]:checked + label .duration {
    color: #555 !important;
    font-weight: normal;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #007bff;
    background: #f0f7ff;
    color: #007bff;
}

.day-schedule-wrapper {
    margin-bottom: 25px;
    padding: 12px 15px;
    border-radius: 4px;
    background: #f9f9f9;
    border: 1px solid #e3e3e3;
}

.day-schedule-wrapper h4 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}

.schedule-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr auto 40px;
    gap: 10px;
    align-items: center;
}

.schedule-row select,
.schedule-row input[type=time] {
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.whole-day-btn {
    padding: 6px 10px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.whole-day-btn:hover {
    background: #2980b9;
}

.remove-row-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.remove-row-btn:hover {
    background: #c0392b;
}

.add-schedule-btn {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #3498db;
    background: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.add-schedule-btn:hover {
    background: #2980b9;
}

.confirmation-label {
    display: block;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.95em;
    color: #856404;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.divider span {
    color: #666;
    font-size: 14px;
}

#servicesCheckboxes {
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
}

.otp-verification-modal, .reset-password-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-verification-modal-content, .reset-password-modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 4px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
}

.otp-verification-modal-content h2 {
    margin-bottom: 10px;
}

.timer {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

#resendOTPButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-card {
    width: 400px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    padding: 25px;
    text-align: left;   
    background: #fff;
}

.profile-card p {
    margin: 8px 0;
    font-size: 15px;
}

.profile-card p strong, .manage-appointment-modal-content-body p strong, .manage-calendar-modal-content-body p strong, .transaction-section p strong, .appointment-details p strong {
    width: 150px;
    display: inline-block;
}

.profile-card p span, .manage-appointment-modal-content-body p span, .manage-calendar-modal-content-body p span, .transaction-section p span {
    display: inline-block;
    max-width: calc(100% - 160px);
    vertical-align: top;
    word-wrap: break-word;
    white-space: pre-wrap;
}

#appointmentCard {
    width: 500px;
}

.booking-modal,
.promo-modal,
.forgot-password-modal,
.edit-profile-modal,
.change-password-modal,
.manage-appointment-modal,
.transaction-record-modal,
.manage-calendar-modal,
.manage-patient-modal,
.manage-employee-modal,
.manage-supply-modal,
.manage-service-modal,
.manage-promo-modal,
.manage-branch-modal,
.manage-announcement-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.booking-modal-content,
.promo-modal-content,
.edit-profile-modal-content,
.change-password-modal-content,
.manage-appointment-modal-content,
.transaction-record-modal-content,
.manage-patient-modal-content,
.manage-calendar-modal-content,
.manage-employee-modal-content,
.manage-supply-modal-content,
.manage-service-modal-content,
.manage-promo-modal-content,
.manage-branch-modal-content,
.manage-announcement-modal-content {
    background: #fff;
    border-radius: 4px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 40px;
    margin: 5vh auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
}

.forgot-password-modal-content {
    background: #fff;
    border-radius: 4px;
    max-width: 400px;
    width: 90%;
    padding: 40px 30px;
    margin: 30vh auto;
    animation: fadeIn 0.3s ease-in-out;
}

.transaction-record-modal-content {
    margin: 10vh auto;
    max-width: 1500px;
    width: 1000%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px 40px;
    border-radius: 4px;
    background: #fff;
    animation: fadeIn 0.3s ease-in-out;
}

.change-password-modal-content, .edit-profile-modal-content, .manage-calendar-modal-content{
    max-width: 500px;
    max-height: 150vh;
    width: 100%;
    margin: 10vh auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .transaction-record-modal-content {
        margin: 4vh auto;
        width: 95%;
        max-width: 95%;
        max-height: 92vh;
        padding: 20px;
    }

    .transaction-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .transaction-section p strong {
        display: block;
        width: 100%;
        margin-bottom: 4px;
    }

    .transaction-section p span {
        display: block;
        max-width: 100%;
        white-space: normal;
    }
}

.promo-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-modal-content .modal-details {
    width: 100%;
    text-align: left;
}

.promo-modal-content .modal-img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.promo-modal-content .modal-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.promo-modal-content .modal-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.promo-modal-content .modal-details p {
    color: #444;
    font-size: 1rem;
    margin: 2px 0;
}

.promo-modal-content .modal-details p strong {
    color: #1a73e8;
    font-weight: 600;
}

.manage-appointment-modal-content h2, .transaction-record-modal-content h2 {
    margin: 0;
    padding-bottom: 5%;
    text-align: center;
}

.manage-employee-modal-content h2,
.manage-patient-modal-content h2,
.manage-calendar-modal-content h2,
.manage-supply-modal-content h2,
.manage-service-modal-content h2,
.manage-promo-modal-content h2,
.manage-branch-modal-content h2,
.manage-announcement-modal-content h2 {
    padding-bottom: 2%;
    margin: 0;
    text-align: center;
}

.transaction-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.transaction-columns .transaction-section:nth-child(2) {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 0 20px;
}

.transaction-columns .transaction-section:nth-child(3) {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.transaction-section h3 {
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.checkout-summary {
    margin-top: 20px;
    padding-top: 10px;
}

.checkout-summary h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.summary-service,
.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.95rem;
}

.summary-item span:first-child {
    font-weight: 500;
    color: #333;
}

.summary-extra {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: -4px;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #dcdcdc;
    margin: 12px 0;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.05rem;
    margin-top: 14px;
}

.service-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.service-extra {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.forgot-password-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #2196f3;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.forgot-password-link:hover, .forgot-password-link:focus {
    text-decoration: underline;
}

.required {
    color: red;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.button-group-profile{
    justify-content: center;
}

.confirm-btn, .add-service-btn {
    background-color: #122130;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.confirm-btn:hover, .add-service-btn:hover {
    background-color: #243b53;
    transition: background-color 0.3s ease;
}

.cancel-btn-appointment {
    background-color: #ffe6e6;
    color: #b00020;
    border: 1px solid #b00020;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.cancel-btn-appointment:hover {
    background-color: #b00020;
    color: #ffe6e6;
    transition: background-color 0.3s ease;
}

.button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cancel-btn {
    background-color: white;
    color: #1a2e4b;
    border: 1px solid #1a2e4b;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #f0f0f0;
}

.tagline-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px 20px 0 20px;
    gap: 20px;
}

.column1, .column2, .column3, .column4 {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}

.column1 img,
.column2 img,
.column3 img,
.column4 img {
    max-width: 80px;
    height: auto;
    margin: 0 auto;
}

.welcome-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;

}

.welcome-text {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}

.description {
    margin-top: 20px;
    font-size: 20px;
    color: #555;
    text-align: center;
    padding-left: 20%;
    padding-right: 20%;
}

.service-container {
    display: flex;
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
}

.image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-column p {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin: 0;
    text-align: center;
}

.image-column:hover p {
    display: block;
}

.image-column:hover img {
    transition: 0.3s;
    opacity: 0.5;
}

.promos {
    max-width: 1000px;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-container .swiper-button-next,
.promo-container .swiper-button-prev {
    width: 45px;
    height: 45px;
    color: #2C3E50;
    transition: transform 0.25s ease, background 0.25s ease;
}

.promo-container .swiper-button-next::after,
.promo-container .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.promo-container .swiper-button-next:hover,
.promo-container .swiper-button-prev:hover {
    transform: scale(1.1);
}

.promo-container {
    margin: 3rem auto;
    max-width: 1100px;
}

.promo-container .promo-card {
    width: 300px;
    height: 420px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.promo-container .promo-card img.promo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

.promo-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 280px;
    height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.promo-card:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.promo-card img.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.promo-card:hover .promo-img {
    transform: scale(1.05);
}

.promo-container .promo-card img.promo-img {
    object-fit: contain;
    background: #fff;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
    color: #fff;
    text-align: left;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.promo-card:hover .promo-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.promo-overlay h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.promo-overlay p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.no-promo {
    font-style: italic;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.promo-container .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.aboutus-wrapper {
    display: flex;
    flex-direction: row;
    gap: 60px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.aboutus-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.aboutus-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
}

.aboutus-paragraph {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.announcement-panel {
    flex: 1;
    min-width: 320px;
    max-width: 420px;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
}

.announce-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.announcement-card {
    background: #f6f6f6;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 4px solid #122130;
}

.announcement-card h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.announcement-card p {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: #444;
}

.announcement-card small {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #555;
}

.educational-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.educational-button {
    display: inline-block;
    padding: 10px 40px;
    text-decoration: none;
    background-color: #122130;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.3s ease;
}

.educational-button:hover {
    background-color: #2a394d;
    opacity: 0.9;
    cursor: pointer;
}

.educational-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    overflow: auto;
}

.educational-modal-content {
    background-color: #fff;
    border-radius: 4px;
    margin: 3% auto;
    padding: 0px 30px;
    max-width: 80%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
}

.educ_main {
    padding: 10px;
}

.dentist-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.dentist-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.dentist-info {
    flex: 1;
}

.dentist-info h3 {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.dentist-details p {
    display: flex;
    margin: 2px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dentist-details p span {
    width: 90px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.center-button {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    min-height: 450px;
}

.infographic-carousel {
    display: flex;
    gap: 15px;
    }

.infographic-carousel img {
    width: 100%;
    max-width: 300px;
    max-height: 500px;
    margin-right: 10px;
    display: inline-block;
    border-radius: 4px;
    flex-shrink: 0;
}

.educ_content {
    line-height: 1.6;
}

.educ_content h2, .educ_content h4 {
    color: #333;
    }

.educ_content ol {
    padding-left: 20px;
}

.educ_content li {
    font-weight: bold;
}

.educ_content p {
    margin-top: 0;
    margin-bottom: 10px;
}

nav {
    background-color: #122130;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    margin-bottom: 10px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-menu li {
    display: flex;
}

.nav-menu li a {
    display: inline-block;
    position: relative;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    height: 100%;
    width: 100%;
    border-radius: 4px;
}

.nav-menu li a:hover {
    background-color: #243b53;
    transition: background-color 0.3s ease;
}

.nav-menu li a.active {
    border-bottom: 2px solid #ffffff;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
}

.nav-item.dropdown {
    position: relative;
}

.notif-badge {
    background-color: red;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.patient-badge {
    background-color: red;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #fff;
    width: 400px;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
    padding: 10px;
}

.notif-dropdown a {
    background: #122130;
    justify-content: center;
}

.notif-dropdown h4 {
    margin: 0;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.notif-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 13px;
}

.notif-item:hover {
    background-color: #f9f9f9;
}

.notif-item.unread {
    background-color: #f9f9f9;
    font-weight: 600;
    cursor: pointer;
}

.notif-message {
    flex: 1;
    margin-right: 5px;
}

.notif-date {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

.logout-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    justify-content: center; align-items: center;
}

.logout-modal-content {
    background: #ffe6e6;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
    width: 300px;
    color: #122130;
}

.logged-user {
    font-size: 15px;
    color: white;
    display: flex;
    align-items: center;
}

.logged-user .colon {
    margin: 0 5px;
}

.logged-user .dash {
    margin: 0 5px;
}

.user-role {
    font-weight: normal;
    color: #ccc;
}

.modal-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
}

.modal-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

#confirmLogout {
    background-color: #ffe6e6;
    color: #b00020;
    border: 1px solid #b00020;
}

#cancelLogout {
    background-color: #122130;
    color: white;
}

#confirmLogout:hover {
    transition: background-color 0.3s ease;
    background-color: #b00020;
    color: #ffe6e6;
}

#cancelLogout:hover {
    transition: background-color 0.3s ease;
    background-color: #2a394d;
    color: white;
}

.calendar-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#calendar {
    width: 100%;
}

.fc-daygrid-event-harness:hover {
    cursor: pointer;
}

.fc-daygrid-dot-event:hover {
    transition: 0.2s ease all;
}

.fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.fc-toolbar-chunk button {
    background: #2d3e50;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    border: none;
}

.fc-toolbar-chunk button:hover {
    background: #1a252f;
}

.fc-day-today {
    background: #eef4ff !important;
}

.fc-event {
    color: #000 !important;
}

.fc-timegrid-event .fc-event-title,
.fc-daygrid-event .fc-event-title {
    color: #000 !important;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: bold;
    color: #5b5f64ff;
    transition: background 0.3s, color 0.3s;
}

.tab.active {
    border-bottom-color: #2196f3;
    color: #122130;
}

.tab-content.active, .sub-tab-content.active {
    display: block;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0 0 0;
    border-bottom: 1px solid #ccc;
}

.sub-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #5b5f64ff;
    transition: background 0.3s, color 0.3s;
}

.sub-tab.active {
    background: #fff;
    color: #122130;
    border-bottom: 3px solid #2196f3;
}

.sub-tab-content {
    display: none;
    width: 100%;
    margin: auto;
}

.tab:hover, .sub-tab:hover {
    color: #122130;
}

.tabs-nomargin {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0px;
    padding: 10px 0 0 0;
    justify-content: center;
    width: 100%;
}

.transaction-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
    min-width: 900px;   
    table-layout: fixed;
}

.transaction-table thead th {
    text-align: left;
    padding: 12px 15px;
    border: none;
    white-space: nowrap;
}

.transaction-table tbody td {
    padding: 12px 15px;
    border-top: 1px solid #ffff;
    vertical-align: middle;
    word-wrap: break-word;
}

.transaction-table thead th,
.transaction-table tbody td {
    padding: 10px 15px;
    text-align: left;
    vertical-align: middle;
    text-overflow: ellipsis;
    height: 48px;
}

.transaction-table tbody tr {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.transaction-table tbody tr:hover {
    background: #eef4ff;
}
.transaction-table tbody tr td:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.transaction-table tbody tr td:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.transaction-table .btn-action,
.transaction-table .manage-action,
.transaction-table button {
    padding: 6px 12px;
    text-decoration: none;
    color: #0f0f0f;
    background: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    font-size: 14px;
    white-space: nowrap;
}

.transaction-table .btn-action:hover,
.transaction-table .manage-action:hover,
.transaction-table button:hover {
    background: #0077b6;
    border-color: #0077b6;
}

.transaction-table tbody tr:hover .btn-action,
.transaction-table tbody tr:hover .manage-action,
.transaction-table tbody tr:hover button {
    background: #eef4ff;
}

.dataTables_filter input[type="search"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 8px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eef4ff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #eef4ff !important;
    border: 1px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer {
    background-color: #eef4ff;
    padding: 40px 0;
    margin-top: 10%;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 90%;
    max-width: none;
    margin: 0 auto;
    text-align: left;
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
}

.footer-column h3 {
    color: #2a394d;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #2a394d;
    display: inline-block;
    padding-bottom: 4px;
}

.footer-column.services-column h3 {
    text-align: center;
    margin: 0 auto;
    display: table;
}

.footer-about {
    color: #2a394d;
    margin-top: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.footerDes {
    color: #555;
    margin: 6px 0;
    font-size: 14px;
    text-decoration: none;
}

#footerBranches,
#footerServices {
    padding: 0;
    margin: 0;
    list-style: none;
}

#footerServices {
    column-count: 4;
    column-gap: 50px;
    margin-top: 15px;
}

#footerServices .footerDes {
    break-inside: avoid;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    #footerServices {
        column-count: 1;
    }
}

/* Responsive layout */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li a {
        justify-content: center;
        padding: 12px 0;
        padding: 10px 16px;
        transition: background-color 0.3s ease;
        border-radius: 4px;
    }

    .notif-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 80vh;
        overflow-y: auto;
        font-size: 14px;
        padding: 12px;
        z-index: 2000;
    }

    .notif-item {
        font-size: 14px;
        line-height: 1.4;
    }

    .notif-date {
        font-size: 11px;
        color: #666;
    }
}

/* ===================== BRANCH GROWTH ===================== */
.branch-growth-container {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.branch-growth-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
}

.branch-growth-list h4,
.branch-growth-chart h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.branch-growth-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
}

.branch-growth-table thead {
    background-color: #1d445dff;
    color: white;
}

.branch-growth-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.branch-growth-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.branch-growth-table tbody tr:hover {
    background-color: #f5f5f5;
}

.branch-growth-table tbody td {
    padding: 12px;
    font-size: 14px;
    color: #333;
}

.branch-growth-table tbody td:nth-child(2),
.branch-growth-table tbody td:nth-child(3) {
    text-align: left;
    font-weight: 500;
}

.branch-growth-table tbody td:nth-child(3) {
    color: #2ecc71;
    font-weight: 600;
}

.branch-growth-chart, .branch-growth-chart-decline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.branch-growth-chart canvas {
    width: 100% !important;
    height: 500px !important;
}

.branch-growth-chart-decline canvas {
    max-width: 400px;
    max-height: 400px;
}

@media (max-width: 1024px) {
    .branch-growth-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .branch-growth-chart canvas {
        max-width: 100%;
    }
}

/* ===================== TOGGLE BUTTON ===================== */
.toggle-chart-btn {
    margin-bottom: 10px;
    padding: 6px 12px;
    font-size: 14px;
    background: #1d445d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-chart-btn:hover {
    background: #163147;
}

/* ===================== KPI CARDS ===================== */
.kpi-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.kpi-box {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background: linear-gradient(135deg, #fdfdfd, #f1f1f1);
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: #122130;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.kpi-box span {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
    color: #2c3e50;
}

.kpi-box:hover {
    transform: translateY(-3px);
}

/* ===================== CHART GRID ===================== */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
        "appointments services"
        "income branch";
    gap: 25px;
    width: 100%;
    margin: 30px 0;
    align-items: stretch;
}

.chart-box {
    background: #fdfdfd;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
}

.chart-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #122130;
    margin-bottom: 15px;
    margin-top: 0px;
    text-align: center;
}

.chart-box canvas {
    flex: 1;
    width: 100% !important;
    height: 300px !important;
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.appointments-summary { grid-area: appointments; }
.services-trend { grid-area: services; }
.income-trend { grid-area: income; }
.branch-comparison { grid-area: branch; }

@media (max-width: 1000px) {
    .chart-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "appointments"
            "services"
            "income"
            "branch";
    }
    .chart-box {
        min-height: 380px;
    }
}

/* ===================== STAFF PERFORMANCE ===================== */

.branch-growth-tracker-text {
    display: block;
    margin-block-start: 0px;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.staff-performance {
    background: #fff;
    padding-top: 0.4rem;
    padding-bottom: 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.25s ease-in-out;
}

.staff-performance:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.staff-performance h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #122130;
    margin-bottom: 1rem;
    text-align: center;
}

.staff-performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.staff-performance-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.staff-performance-table th,
.staff-performance-table td {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
}

.staff-performance-table th {
    background: #1d445dff;
    color: #fff;
}

.staff-performance-chart canvas {
    width: 100%;
    height: 400px;
}

/* 
@media (max-width: 1000px) {
    .staff-performance-grid {
        grid-template-columns: 1fr;
    }
} */

/* ===================== INSIGHTS GRID ===================== */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    margin-top: 30px;
    align-items: stretch;
}

.patient-mix,
.peak-hours {
    background: #fdfdfd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}

.patient-mix canvas,
.peak-hours canvas {
    width: 100% !important; 
    max-width: 100%; 
    height: 200px !important; 
    object-fit: contain; 
}

.chart-box.patient-mix {
    position: relative;
    min-height: 400px;
    text-align: center;
}

.new-patient-count {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #1d445d;
}

@media (max-width: 1000px) {
    .insights-grid {
        grid-template-columns: 1fr; 
        width: 100%;
    }
}

/* ===================== SERVICES BREAKDOWN ===================== */
.services-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
    margin-top: 30px;
    align-items: stretch;
}

.chart-box.services-category {
    background: #fdfdfd;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
}

.chart-box.services-category canvas {
    flex: 1;
    width: 100% !important;
    height: 300px !important;
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 1000px) {
    .services-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== INCOME TREND WRAPPER ===================== */
.chart-wrapper-income-trend {
    width: 100% !important;
    height: 50% !important;
}

/* ============================== MOB RES ==============================*/
@media (max-width: 768px){
    .main-container {
        flex-direction: column;
        padding: 10px;
    }

    .motto-container {
        margin-bottom: 20px;
    }

    .login-container {
        margin-left: 0;
        max-width: 100%;
    }

    .tagline-container {
        flex-direction: column;
        padding: 10px;
        align-items: center;
    }

    .column1, .column2, .column3, .column4 {
        margin: 10px 0;
        padding: 15px;
    }

    .service-container .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .image-column {
        text-align: center;
    }

    .booking-modal-content, .forgot-password-modal-content, .promo-modal-content, .educational-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        margin-bottom: 10px;
    }

    .promo-slider {
        width: 100%;
    }

    .motto{
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        padding: 0 10px;
        gap: 0;
    }

    .footer-column {
        flex: none;
        width: 100%;
        margin: 15px 0;
        text-align: left;
    }

    .footer-logo {
        max-width: 175px; 
    }

    .footer-about {
        font-size: 13px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footerDes {
        font-size: 13px;
    }
}