/* Responsive FullCalendar styles for dashboard schedule card */
@media (max-width: 767px) {
    #calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 0;
        padding-right: 0;
    }
    #calendar {
        min-width: 600px;
        width: 100%;
        font-size: 0.95em;
    }
    #calendar .fc {
        font-size: 0.95em;
    }
    #calendar .fc-toolbar-title {
        font-size: 1em;
    }
    #calendar .fc-header-toolbar {
        flex-wrap: wrap;
        gap: 4px;
    }
    #calendar .fc-scrollgrid, #calendar table {
        min-width: 600px;
        width: 100%;
    }
    #calendar .fc-button {
        font-size: 0.95em;
        padding: 0.25em 0.7em;
    }
}
@media (max-width: 600px) {
    .dashboard-header p {
        padding-bottom: 20px;
    }
}
.dashboard-header p {
    padding-bottom: 20px !important;
}
@media (max-width: 600px) {
    .dashboard-header p {
        padding-bottom: 20px !important;
    }
}
/* Dashboard and Schedule Page Background */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all content */
    background-image: url("/static/main/images/why-choose-us-bg.jpg");
    background-size: cover;
    background-position: center;
}
.page-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
@media (max-width: 600px) {
    .page-background::before {
        background-color: transparent !important;
    }
}
/* Student image in upcoming sessions card */
/* Global student avatar style for all dashboard avatars */
.student-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid var(--primary, #a259f7);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: inline-block;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .student-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }
}
/* ===================================================================
    Dashboard Page Styles
=================================================================== */

/* This container will hold our background image and overlay */

body.has-custom-bg {
    background: transparent;
}

.dashboard-page .page-header {
    display: none; /* Hide the generic page header on the dashboard */
}

.dashboard-container {
    padding: 120px 0 60px; /* Add padding to account for fixed header */
    background-color: transparent; /* Ensure this container is see-through */
    min-height: 100vh;
}

/* Ensure the schedule page container is also transparent */
.schedule-page-container {
    background-color: transparent;
    padding: 120px 0 60px; /* Match dashboard padding */
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center; /* Kept from original */
    /* Frosty glass effect to match page footer and cards */
    background-color: rgba(var(--bg-primary-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(var(--border-color), 0.2);
    color: var(--text-primary);
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.07);
}
body.dark-mode .dashboard-header {
    background-color: rgba(var(--bg-secondary-rgb), 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary); /* Ensure text color is correct on the new background */
    font-weight: 900;
}

@media (max-width: 600px) {
    .dashboard-header h1 {
        font-size: 1.45rem;
        line-height: 1.15;
    }
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-weight: 400;
}

@media (max-width: 600px) {
    .dashboard-header p {
        font-size: 0.92rem;
        line-height: 1.2;
        max-width: 90vw;
        padding: 0 4vw;
    }
}

/* Grid for Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Individual Card Styling */

/* Frosty glass effect for ALL cards on ALL pages */
.dashboard-card, .schedule-list, .unified-card, .blog-card, .product-card, .order-summary-card, .cart-summary-panel, .frosty-panel, .card,
.value-card, .company-highlight-card, .team-box, .director-card, .subject-card, .subject-card-new, .blog-card-small, .cart-items-panel, .service-card, .invoice-card, .checkout-card, .featured-tutor-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(var(--bg-primary-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--border-color), 0.2);
    color: var(--text-primary);
    border-radius: 15px;
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.07);
}
body.dark-mode .dashboard-card,
body.dark-mode .schedule-list,
body.dark-mode .unified-card,
body.dark-mode .blog-card,
body.dark-mode .product-card,
body.dark-mode .order-summary-card,
body.dark-mode .cart-summary-panel,
body.dark-mode .frosty-panel,
body.dark-mode .card,
body.dark-mode .value-card,
body.dark-mode .company-highlight-card,
body.dark-mode .team-box,
body.dark-mode .director-card,
body.dark-mode .subject-card,
body.dark-mode .subject-card-new,
body.dark-mode .blog-card-small,
body.dark-mode .cart-items-panel,
body.dark-mode .service-card,
body.dark-mode .invoice-card,
body.dark-mode .checkout-card,
body.dark-mode .featured-tutor-card {
    background-color: rgba(var(--bg-secondary-rgb), 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .dashboard-card {
    background-color: rgba(var(--bg-secondary-rgb), 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .dashboard-card,
.dark-mode .schedule-panel,
.dark-mode .schedule-list,
.dark-mode .dashboard-header, .dark-mode .reports-panel {
    background-color: rgba(45, 55, 72, 0.5);
}

.dashboard-card:hover,
.schedule-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.dashboard-card .card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card .card-body {
    padding: 25px;
    flex-grow: 1;
}

.dashboard-card .card-footer {
    padding: 15px 25px;
    background-color: rgba(var(--bg-secondary-rgb), 0.3);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 15px 15px;
    margin-top: auto; /* Pushes footer to the bottom */
    display: flex;
    justify-content: flex-end; /* Aligns items to the right */
    align-items: center;
}

/* Profile Card Specifics */
.profile-card .profile-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    text-align: center;
}
.profile-card .profile-details h4,
.profile-card .profile-details p,
.profile-card .profile-details .tag {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.profile-card .profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 16px rgba(30,42,60,0.10);
    margin-bottom: 12px;
}

.profile-card h4 {
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.profile-card p {
    margin: 0 0 8px;
    color: var(--text-secondary);
}

.profile-card .tag {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Schedule Card Specifics */
.schedule-card .card-body {
    padding: 15px 0 15px 25px;
}

.appointment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Animation for when an appointment is moved to the past list */
@keyframes fadeInAndUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-date {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    padding: 8px;
    min-width: 55px;
    font-weight: bold;
}
.appointment-date .month { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--primary); }
.appointment-date .day { display: block; font-size: 1.5rem; color: var(--text-primary); line-height: 1.2; }

.appointment-details {
    flex-grow: 1; /* Allow details to take up available space */
}

.appointment-details .student-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}
.appointment-details .time-subject {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.appointment-actions {
    margin-left: auto; /* Pushes the actions to the far right */
}

.schedule-card p { margin: 10px 0; }

/*
* Join Button Customization
* Makes the "Join" button on the dashboard schedule card smaller and transparent.
*/
.appointment-actions .vs-btn {
    background-color: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    font-size: 0.85rem;
    color: var(--primary); /* Use primary color for visibility */
    text-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.appointment-actions .vs-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transform: none; /* Disable the hover lift effect */
    box-shadow: none;
}

.dark-mode .appointment-actions .vs-btn { color: var(--primary); }

/* --- Styles for Quick Actions Card --- */
.quick-actions-card .appointment-item {
    padding: 0; /* Remove padding from the li itself */
}

.action-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px 15px 0; /* Match original appointment-item padding */
    text-decoration: none;
    border-radius: 8px; /* For hover effect */
    transition: background-color 0.2s ease;
}

.action-link:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.action-icon-container {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    padding: 8px;
    min-width: 55px;
    font-size: 1.5rem;
    color: var(--primary);
}

.action-details {
    flex-grow: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.action-chevron {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.action-link:hover .action-chevron {
    color: var(--primary);
    transform: translateX(5px);
}

/* --- Styles for My Schedule List View --- */
.schedule-card .card-body {
    padding: 0; /* Remove padding to allow list items to span full width */
}

.schedule-card .appointment-item {
    padding-left: 25px;
}

.schedule-card .appointment-details .status-badge {
    margin-left: 8px;
}

.schedule-card .empty-state-text {
    padding: 25px;
    text-align: center;
    color: var(--text-secondary);
}

/* Styles for the status update form in the list */
.status-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-select {
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.vs-btn-xs {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* Loading spinner for buttons */
.vs-btn.is-loading {
    position: relative;
    color: transparent !important; /* Hide button text */
    pointer-events: none; /* Disable clicks while loading */
}

.vs-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff; /* Spinner color */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* Past appointment date styling */
.appointment-date.past .month,
.appointment-date.past .day {
    color: var(--text-secondary);
}
/* =================================================================== */
/* Toast Notification Styles                                         */
/* =================================================================== */
#toast-container {
    position: fixed;
    top: 100px; /* Below the header */
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.toast-notification {
    min-width: 300px;
    max-width: 350px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary);
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification a {
    padding: 15px 40px 15px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.4rem;
}

.toast-notification.toast-warning { border-left-color: var(--accent); }
.toast-notification.toast-warning .toast-icon { color: var(--accent); }

.toast-notification.toast-info { border-left-color: var(--primary); }
.toast-notification.toast-info .toast-icon { color: var(--primary); }

.toast-notification.toast-success { border-left-color: #198754; }
.toast-notification.toast-success .toast-icon { color: #198754; }

.toast-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.toast-close-btn:hover { color: var(--text-primary); }

/* =================================================================== */
/* Time Tracker Card Styles                                          */
/* =================================================================== */
.time-tracker-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timer-display {
    font-family: 'Roboto Mono', monospace; /* Monospaced font for timer */
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.timer-status {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.timer-status.active {
    color: var(--primary);
    font-weight: 500;
}

.time-tracker-card .card-footer {
    justify-content: center; /* Center the buttons */
}

.timer-actions .vs-btn {
    min-width: 130px;
    justify-content: center;
    display: inline-flex; /* For icon alignment */
    align-items: center;
    gap: 8px;
}

/* Custom button colors for time tracker */
.vs-btn-success {
    background-color: #198754;
    border-color: #198754;
}
.vs-btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}
.vs-btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}
.vs-btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* =================================================================== */
/* FullCalendar Customizations (for my_schedule.html)                */
/* =================================================================== */
.schedule-panel {
    padding: 25px 30px;
}

/* DEFINITIVE FIX: A conflicting 'display: flex' from 'tutors.css' (.team-box)
   was being applied to the schedule panel. This highly specific rule overrides
   it and ensures the calendar container is a block element, allowing it to render. */
.dashboard-page #calendar-container .schedule-panel {
    display: block;
}

.fc {
    /* Remove the default border from FullCalendar */
    border: none;
}

/* Make calendar background transparent to show frosty panel effect */
.fc .fc-view-harness {
    background-color: transparent !important;
}

/* Style the calendar header (prev, next, title) */
.fc .fc-toolbar-title {
    color: var(--text-primary);
    font-family: 'Baloo 2', cursive;
}

.fc .fc-button-primary {
    /* Frosty glass effect for calendar view tabs */
    background-color: rgba(var(--bg-secondary-rgb), 0.4) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--border-color), 0.3) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

body.dark-mode .fc .fc-button-primary {
    background-color: rgba(var(--bg-secondary-rgb), 0.2) !important;
}

.fc .fc-button-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.2) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Active tab style */
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: rgba(var(--primary-rgb), 0.6) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.fc .fc-daygrid-day-number {
    color: var(--text-secondary);
}

/* Prevent event text from overflowing its container in month/week view */
.fc-daygrid-event {
    white-space: nowrap; /* Prevent the title from wrapping to a new line */
    overflow: hidden;    /* Hide the overflowing part of the text */
    text-overflow: ellipsis; /* Add '...' to indicate the text is cut off */
}

/* Ensure the title element itself also handles overflow */
.fc-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Frosty Glass Effect for Calendar Events --- */
.fc-event {
    /* Override FullCalendar's inline background-color with a semi-transparent version */
    background-color: rgba(var(--fc-event-bg-r), var(--fc-event-bg-g), var(--fc-event-bg-b), 0.5) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--fc-event-bg-r), var(--fc-event-bg-g), var(--fc-event-bg-b), 0.7) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.fc-event:hover {
    background-color: rgba(var(--fc-event-bg-r), var(--fc-event-bg-g), var(--fc-event-bg-b), 0.7) !important;
}

/* Ensure event text is readable */
.fc-event .fc-event-title {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/* =================================================================== */
/* Modal Styles (for appointment details)                            */
/* =================================================================== */

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
.modal-close-btn:hover { color: var(--text-primary); }

.modal-title {
    margin-bottom: 1.25rem; /* <-- Reduced margin */
    font-size: 1.4rem; /* <-- Reduced font size */
}
.modal-body p { margin-bottom: 0.7rem; } /* <-- Reduced margin */
.modal-body p strong { color: var(--text-primary); }
.modal-footer {
    margin-top: 1.5rem;
    text-align: right;
    display: flex; /* <-- Added for better alignment */
    justify-content: flex-end; /* <-- Aligns items to the right */
    gap: 8px; /* <-- Adds space between buttons */
}

/* Make all buttons inside modal footers slimmer */
.modal-footer .vs-btn {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.9rem; /* Slightly smaller font for a more compact feel */
}

/* New styles for copyable items */
.copyable-item {
    display: flex;
    align-items: center;
    gap: 5px; /* <-- Reduced gap */
}

.copyable-item p {
    margin-bottom: 0.5rem; /* Adjust margin for tighter spacing */
    word-break: break-all; /* Prevent long links from overflowing */
}

.copy-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px; /* <-- Increased padding */
    border-radius: 50%;
    width: 36px; /* <-- Increased size */
    height: 36px; /* <-- Increased size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative; /* For positioning the feedback text */
    font-size: 1.1rem; /* <-- Increased icon size */
}
.copy-icon-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Styles for the "Copied!" feedback */
.copy-feedback {
    position: absolute;
    left: 100%;
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-icon-btn.copied .copy-feedback {
    opacity: 1;
    transform: translateX(0);
}

.copy-icon-btn.copied i.fa-check {
    color: var(--success-color, #28a745);
}

/* Styles for forms inside modals */
.modal-content form .modal-body {
    padding-bottom: 0; /* Reduce bottom padding when a form is present */
}
.modal-content form .modal-footer { text-align: right; }

/* Status Badge Styles (re-using from payroll for consistency) */
.status-badge {
    display: inline-block;
    padding: 0.3em 0.65em;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    color: #fff;
    text-transform: capitalize;
}
.status-badge.status-scheduled { background-color: var(--primary, #007bff); }
.status-badge.status-completed { background-color: var(--success-color, #28a745); }
.status-badge.status-canceled { background-color: var(--danger-color, #dc3545); }

.confirmation-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Group styles for modals */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}
/* =================================================================== */
/* Edit Tutor Profile Page Styles                                    */
/* =================================================================== */
.edit-profile-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .edit-profile-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-picture-preview {
    width: 150px; /* Reduced from a larger size */
    height: 150px; /* Reduced from a larger size */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.change-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-picture-container:hover .change-picture-overlay {
    opacity: 1;
}

.profile-fields-column { flex-grow: 1; }

/* Constrain the width of simple forms like the password change form */
.constrained-form {
    max-width: 500px;
    margin: 0 auto;
}

/* --- Password Change Form Specifics --- */
.password-change-form .input-group-modern input {
    padding-left: 45px; /* Make space for the icon */
}

.form-help-text {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    padding-left: 5px;
}

.form-error-text {
    width: 100%;
    font-size: 0.85rem;
    color: var(--danger-color);
    margin-top: 5px;
}

/* Hide the default file input, we use a label to style it */
.edit-profile-form input[type="file"] {
    display: none;
}

/* --- Create Appointment Modal Form Uniformity --- */
/* Ensure all text-based inputs and the select menu have the same appearance */
#create-appointment-modal .form-group input[type="text"],
#create-appointment-modal .form-group input[type="url"],
#create-appointment-modal .form-group input[type="number"],
#create-appointment-modal .form-group select {
    box-sizing: border-box; /* Ensures padding and border are included in the width */
    width: 100%;
}

.forgot-password-link {
    background: transparent !important; /* Override other footer styles */
    border-top: 1px solid rgba(var(--border-color-rgb), 0.2) !important;
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

.forgot-password-link a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: var(--primary);
}