/* --- Most styles are unchanged --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    padding: 10px;
}




/* Calendar section CSS Start */

h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#calendar {
    max-width: 450px;
    margin: 20px auto;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.fc-toolbar-chunk {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc .fc-view-harness {
    height: 400.429px !important;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0;
    background-color: #800000;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    color: white;
}

.fc-toolbar-title {
    color: white;
    font-size: 1.1rem !important;
    cursor: pointer;
    transition: opacity 0.2s;
}

.fc-toolbar-title:hover {
    opacity: 0.8;
}

.fc-button {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
}

.fc .fc-daygrid-day-number {
    position: absolute;
    bottom: 0px;
    left: 2px;
    font-size: 15px;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.fc .fc-col-header-cell-cushion {
    text-decoration: none;
    font-size: 15px;
    padding: 5px;
    color: #800000;
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

/* Custom text-muted replacement */
.custom-text-muted {
    color: #6c757d;
    /* Equivalent to Bootstrap's text-muted */
}

.fc .fc-button:not(:disabled) {
    cursor: pointer;
    background-color: #800000;
    color: white;
    border-color: #800000;
}

.fc .fc-button:not(:disabled):hover {
    background-color: #ffffff;
    color: #800000;
}

.fc .fc-daygrid-day {
    border: 1px solid #e5d4d4;
    border-right: hidden;
    position: relative;
    cursor: pointer;
}

.fc .fc-daygrid-day:hover {
    background-color: #ffe9e9;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #800000;
    color: white;
    z-index: 100;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: white;
}

.fc .fc-daygrid-day.fc-day-sun .fc-daygrid-day-number {
    color: #ff0000;
    font-weight: bolder;
}

.fc .fc-daygrid-day.fc-day-sun {
    background-color: #ffffff;
}

.fc .fc-daygrid-day.fc-day-sun:hover {
    background-color: #ffe9e9;
}


.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child) {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    font-weight: bold;
}

.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child):hover {
    background-color: transparent;
    color: white;
}

.fc .fc-button:disabled {
    border: none;
    outline: none;
    background-color: transparent;
    color: rgb(255, 255, 255);
}


.custom-clock-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1059;
}

.custom-clock-picker {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1060;
    user-select: none;
    overflow: hidden;
}

.clock-header {
    background-color: #800000;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
}

.clock-header span.active {
    opacity: 1;
}

.clock-body {
    padding: 10px;
}

.clock-face {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f4f4f9;
    position: relative;
    margin: 0 auto;
}

.clock-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #800000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clock-number {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clock-number:hover {
    background-color: #ffe9e9;
}

.am-pm-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.am-pm-selector button {
    border: 1px solid #800000;
    background: white;
    color: #800000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.am-pm-selector button.active {
    background: #800000;
    color: white;
}

.clock-footer {
    padding: 6px 8px;
    text-align: right;
    border-top: 1px solid #eee;
}

.appointment-item {
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-actions i {
    cursor: pointer;
    margin-left: 15px;
    font-size: 1.3rem;
    color: #000000;
    transition: color 0.2s;
    background-color: white;
}

/* Note: Since <i> tags are removed, these styles for delete/edit buttons
   will only apply if you decide to use <i> tags again with custom icon fonts
   or background images. If you use text, these specific icon styles
   won't have a direct effect on them unless you apply a common class.
   For now, these are kept as they are existing and not harmful. */
.appointment-actions .delete-btn:hover {
    color: #ff0019;
}

.appointment-actions .edit-btn:hover {
    color: #0d6efd;
}

.appointment-title {
    font-weight: 600;
    color: #800000;
    font-size: 1rem;
}

.appointment-time {
    font-size: 0.85rem;
    color: #555;
}

.fc-daygrid-day-events .booked-indicator {
    color: white;
    font-size: 0.7rem;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
    font-weight: 500;
    text-align: center;
}

/* Custom Picker Modal Styles (replaces Bootstrap .modal classes for year/month pickers) */
.custom-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* Same as custom-modal-overlay */
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-picker-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.custom-picker-dialog {
    position: relative;
    max-width: 300px;
    /* Equivalent to modal-sm */
    width: 90%;
    margin: 0 auto;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-picker-overlay.is-open .custom-picker-dialog {
    transform: scale(1);
    opacity: 1;
}

.custom-picker-content {
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Added shadow for consistency */
    overflow: hidden;
    /* Ensures border-radius applies */
}

.custom-picker-header {
    border-bottom: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-picker-header-centered {
    justify-content: center;
}

.custom-picker-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Selector for btn-nav remains the same as HTML keeps `picker-modal` class */
.picker-modal .btn-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    /* This will size the Unicode arrows */
    color: #555;
    padding: 0 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.picker-modal .btn-nav:hover {
    color: #333;
}

/* Selector for picker-item remains the same as HTML keeps `picker-modal` class */
.picker-modal .custom-picker-body {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.picker-modal .picker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.picker-modal .picker-item:hover {
    background-color: #e0e0e0;
}

.picker-modal .picker-item.active {
    background-color: #334b6c;
    color: white;
    font-weight: bold;
}

.picker-modal .picker-item.current {
    background-color: #dcdcdc;
    color: #333;
}

#monthGrid {
    grid-template-columns: repeat(3, 1fr);
}

/* General Button Styles (Replaces Bootstrap .btn) */
.custom-btn {
    padding: 13px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    /* Crucial for aligning text and potential new icons */
    align-items: center;
    justify-content: center;
    gap: 5px;
    /* Provides space between '+' and 'Book New' */
    font-size: 17px;
    color: white;
}

/* Primary Button Styles (Replaces Bootstrap .btn-primary) */
.custom-btn-primary {
    background-color: #800000;
    color: white;
}

.custom-btn-primary:hover {
    background-color: #660000;
    /* Slightly darker on hover */
    color: white;
}

/* Small Button Styles (Replaces Bootstrap .btn-sm) */
.custom-btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Block Button Styles (Replaces Bootstrap .w-100) */
.custom-btn-block {
    width: 100%;
    display: block;
}

/* --- Custom Modal Styling (Applied to Delete, Details, and Appointment modals) --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: white;
    border-radius: 12px;
    max-width: 530px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.custom-modal-overlay.is-open .custom-modal {
    transform: scale(1);
    opacity: 1;
}

/* Adjusted for delete modal specifically */
#deleteConfirmModal .custom-modal {
    padding: 0;
    /* Remove existing padding from parent */
    text-align: center;
    /* Center content of delete modal */
}

#deleteConfirmModal .custom-modal h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#deleteConfirmModal .custom-modal p {
    margin-bottom: 1.5rem;
}

/* Styles for internal parts of the custom modals (header, body, footer) */
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.btn-close-custom {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
    line-height: 1;
    font-size: 35px;

}

.btn-close-custom:hover {
    color: #333;
}

.custom-modal-body {
    padding: 1.5rem;
    text-align: left;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-bottom: 20px;
    /* Add padding here for delete modal's action buttons */
}

.confirm-cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

.confirm-cancel-btn:hover {
    background-color: #ccc;
}

.confirm-delete-btn {
    background-color: #e53935;
    color: white;
}

.confirm-delete-btn:hover {
    background-color: #d32f2f;
    color: white;
}

/* Form Group (Replaces Bootstrap .mb-3) */
.custom-form-group {
    margin-bottom: 1rem;
    /* Equivalent to Bootstrap mb-3 */
}

/* Form Label (Replaces Bootstrap .form-label) */
.custom-form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

/* Visually Hidden (Replaces Bootstrap .visually-hidden) */
.custom-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Custom Form Input (Replaces Bootstrap .form-control) */
.custom-form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-form-input:focus {
    border-color: #800000;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
    /* Custom focus ring */
}

/* Specific styles for the new alert modal */
#alertDialog .custom-modal {
    max-width: 350px;
}

#alertDialog .custom-modal-body {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

#alertDialog .custom-modal-body p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0;
}

#alertDialog .custom-modal-footer {
    justify-content: center;
    border-top: none;
    padding-top: 10px;
}

/* NEW: Styles for the custom transient notification banner */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

.custom-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.custom-notification.success {
    background-color: #28a745;
}

.custom-notification.error {
    background-color: #dc3545;
}

.custom-notification .close-notification-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.custom-notification .close-notification-btn:hover {
    opacity: 1;
}

/* Calendar section CSS End */









/* User Auth section CSS Start */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

.auth-modal {
    display: none;
    /* Hidden initially */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent black overlay */
    justify-content: center;
    align-items: center;
}

.auth-modal-content {
    position: relative;
    background-color: transparent;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    padding: 0;
    /* Let your card define spacing */
}


.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 35px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #ff4d4d;
}


.card {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease, height 0.8s ease;
}

#toggle {
    display: none;
}

#toggle:checked~.card {
    transform: rotateY(180deg);
    height: 700px;
    /* Height when Register form is displayed */
}

.form-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-face h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* .form-group {
    margin-bottom: 1.2rem;
} */

.form-face label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-face input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-face input:focus {
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.2);
    outline: none;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #800000;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.btn:hover {
    background-color: #a00000;
}

.switch-btn {
    margin-top: auto;
    background: none;
    border: none;
    color: #800000;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 100%;
    padding-top: 1rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #888;
    font-size: 0.9rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #eee;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}



.google-btn-container {
    display: flex;
    justify-content: center;
}



.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
}


/* NEW: Styles for the custom transient notification banner */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

.custom-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.custom-notification.success {
    background-color: #28a745;
}

.custom-notification.error {
    background-color: #dc3545;
}

.custom-notification .close-notification-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.custom-notification .close-notification-btn:hover {
    opacity: 1;
}



/* User Auth section CSS End */