body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container-fluid {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Filter Styles */
.form-select, .form-control {
    height: 60px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    width: 100%;
}

.form-select {
    cursor: pointer;
    background-color: white;
}

/* Date Picker Styles */
.date-picker-container {
    position: relative;
    width: 100%;
}

#dateRangePicker {
    padding-right: 35px; /* Make room for the clear icon */
}

.clear-date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #dc3545;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.clear-date-icon:hover {
    background-color: #f8d7da;
}

.flatpickr-calendar {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: #007bff;
    border-color: #007bff;
}

/* Remove range styles since we're using single date selection */
.flatpickr-day.inRange {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* Clear button styles */
.flatpickr-clear {
    color: #dc3545;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.flatpickr-clear:hover {
    background-color: #f8d7da;
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 60px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding: 8px 30px 8px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 58px;
}

.select2-container--default .select2-results__option {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] .specialty-option {
    background-color: #007bff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] .specialty-name-en,
.select2-container--default .select2-results__option--highlighted[aria-selected] .specialty-name-ar {
    color: white;
}

.select2-results__option {
    white-space: normal;
    word-break: break-word;
}

/* Schedule Container Styles */
.schedule-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 20px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schedule-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 2;
}

.doctor-column {
    min-width: 250px;
    width: 250px;
    padding: 15px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    position: sticky;
    left: 0;
    z-index: 3;
}

.calendar-header {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.calendar-scroll {
    display: flex;
    overflow-x: auto;
    flex: 1;
}

.day-column {
    min-width: 150px;
    width: 150px;
    padding: 15px;
    text-align: center;
    border-right: 1px solid #dee2e6;
    font-weight: 500;
}

.day-column .day-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.day-column .date {
    font-size: 0.9em;
    color: #666;
}

.schedule-body {
    flex: 1;
    overflow: auto;
    position: relative;
    scrollbar-width: thin;
}

.doctor-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    min-height: 80px;
    transition: all 0.3s ease;
    position: relative;
}

.doctor-info {
    display: flex;
    align-items: center;
    padding: 10px;
    min-width: 250px;
    height: 80px;
    cursor: pointer;
    background-color: white;
    border-right: 1px solid #dee2e6;
    position: sticky;
    left: 0;
    z-index: 1;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Remove title attribute tooltip */
.doctor-info[title] {
    position: relative;
}

.doctor-info[title]:hover:after {
    display: none;
}

/* Remove Bootstrap tooltip styles */
.tooltip {
    display: none !important;
}

.tooltip-inner {
    display: none !important;
}

.doctor-image-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.doctor-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-indicator.online {
    background-color: #28a745;
}

.status-indicator.offline {
    background-color: #dc3545;
}

/* Add status text to tooltip */
.doctor-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.doctor-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.doctor-status .status-dot.online {
    background-color: #28a745;
}

.doctor-status .status-dot.offline {
    background-color: #dc3545;
}

.doctor-status .status-text {
    font-size: 13px;
    color: #666;
}

.doctor-info .name-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
    justify-content: center;
}

.doctor-info .name-en,
.doctor-info .name-ar {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    padding: 2px 0;
}

.doctor-info .name-ar {
    text-align: right;
    direction: rtl;
    color: #666;
}

.doctor-info .name-en {
    color: #333;
}

.doctor-schedule {
    display: flex;
    flex: 1;
    min-width: fit-content;
}

.time-slot-container {
    min-width: 150px;
    width: 150px;
    border-right: 1px solid #dee2e6;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-slot {
    background-color: #007bff;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85em;
    cursor: pointer;
}

.time-slot:hover {
    background-color: #0056b3;
}

.time-slot.empty {
    display: none;
}

/* Specialty Select Styles */
.specialty-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    cursor: help;
}

.specialty-name-en, .specialty-name-ar {
    font-size: 14px;
    line-height: 1.4;
}

.specialty-name-en {
    color: #333;
}

.specialty-name-ar {
    color: #666;
    text-align: right;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.15s;
    max-width: 300px;
}

.tooltip.show {
    opacity: 1;
}

.tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Select Option Styles */
select option {
    font-size: 14px;
    line-height: 1.4;
    padding: 8px;
    white-space: pre-wrap;
}

/* Clinic and Doctor Select Styles */
.clinic-option,
.doctor-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    cursor: help;
    min-height: 60px;
    justify-content: center;
}

.clinic-name-en,
.clinic-name-ar,
.doctor-name-en,
.doctor-name-ar {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0;
}

.clinic-name-ar,
.doctor-name-ar {
    text-align: right;
    direction: rtl;
    color: #666;
}

.clinic-name-en,
.doctor-name-en {
    color: #333;
}

/* Select2 Customization */
.select2-container--default .select2-results__option--highlighted[aria-selected] .clinic-name-en,
.select2-container--default .select2-results__option--highlighted[aria-selected] .clinic-name-ar,
.select2-container--default .select2-results__option--highlighted[aria-selected] .doctor-name-en,
.select2-container--default .select2-results__option--highlighted[aria-selected] .doctor-name-ar {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-column, .doctor-info {
        min-width: 150px;
        width: 150px;
    }
    
    .day-column, .time-slot-container {
        min-width: 120px;
        width: 120px;
    }
}

/* Clear All Filters Button */
#clearAllFilters {
    padding: 8px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

#clearAllFilters i {
    font-size: 16px;
}

#clearAllFilters:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#clearAllFilters:active {
    transform: scale(0.98);
}

/* Add hover effect for doctor info */
.doctor-info:hover {
    background-color: rgba(0, 123, 255, 0.05);
    z-index: 2;
}

/* Add dimming effect for non-hovered doctors */
.doctor-info:hover ~ .doctor-schedule {
    opacity: 0.4;
    filter: grayscale(50%);
}

/* Doctor info tooltip */
.doctor-tooltip {
    position: absolute;
    left: 270px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    width: 300px;
    display: none;
    border: 1px solid #e0e0e0;
}

.doctor-info:hover .doctor-tooltip {
    display: block;
}

/* Remove the row hover effects */
.doctor-row:hover {
    background-color: transparent;
    transform: none;
}

.doctor-row:hover .doctor-info {
    background-color: transparent;
}

.doctor-row.dimmed {
    opacity: 1;
    filter: none;
}

.doctor-tooltip-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.doctor-tooltip-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.doctor-tooltip-name {
    flex: 1;
}

.doctor-tooltip-name .tooltip-section {
    margin-bottom: 8px;
}

.doctor-tooltip-name .tooltip-section:last-child {
    margin-bottom: 0;
}

.doctor-tooltip-name .tooltip-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.doctor-tooltip-name .tooltip-value {
    font-size: 14px;
}

.doctor-tooltip-name .value-en {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.doctor-tooltip-name .value-ar {
    color: #666;
    text-align: right;
    direction: rtl;
}

.doctor-tooltip-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tooltip-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

.tooltip-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.tooltip-value .value-en {
    color: #333;
    margin-bottom: 2px;
}

.tooltip-value .value-ar {
    color: #666;
    text-align: right;
    direction: rtl;
}

/* Add a subtle hover effect for the tooltip sections */
.tooltip-section:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

/* Appointment Modal Styles */
#appointmentModal .modal-dialog,
#appointmentSummaryModal .modal-dialog {
    max-width: 500px;
}

#appointmentModal .modal-content,
#appointmentSummaryModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#appointmentModal .modal-header,
#appointmentSummaryModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

#appointmentModal .modal-title,
#appointmentSummaryModal .modal-title {
    font-weight: 600;
    color: #2c3e50;
    width: 100%;
}

#appointmentModal .modal-body,
#appointmentSummaryModal .modal-body {
    padding: 20px;
}

#appointmentModal .doctor-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

#appointmentModal .doctor-details .row {
    margin-bottom: 8px;
}

#appointmentModal .doctor-details .col-4 {
    font-weight: 500;
    color: #6c757d;
}

#appointmentModal .doctor-details .col-8 {
    font-weight: 600;
}

#availabilityStatus {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

#appointmentModal .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

#appointmentModal .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    height: auto;
    font-size: 16px;
}

#appointmentModal .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#appointmentModal .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#appointmentModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    justify-content: space-between;
}

#appointmentModal .btn,
#appointmentSummaryModal .btn {
    padding: 10px 20px;
    border-radius: 6px;
}

#appointmentModal .btn-primary,
#appointmentSummaryModal .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

#appointmentModal .btn-primary:hover,
#appointmentSummaryModal .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

#appointmentModal .btn-secondary,
#appointmentSummaryModal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#appointmentModal .btn-secondary:hover,
#appointmentSummaryModal .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Summary Modal Styles - Updated to match image */
#appointmentSummaryModal .modal-content {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#appointmentSummaryModal .modal-header {
    padding: 15px 20px;
    position: relative;
    background-color: white;
    border-bottom: none;
}

#appointmentSummaryModal .modal-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#appointmentSummaryModal .modal-title .arabic-text {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}

#appointmentSummaryModal .modal-title .english-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

#appointmentSummaryModal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    color: #6c757d;
}

#appointmentSummaryModal .modal-body {
    padding: 0 20px 20px;
}

#appointmentSummaryModal .summary-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

#appointmentSummaryModal .summary-box .d-flex.justify-content-between {
    margin-bottom: 8px;
}

#appointmentSummaryModal .summary-box .d-flex.justify-content-between .english-text,
#appointmentSummaryModal .summary-box .d-flex.justify-content-between .arabic-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

#appointmentSummaryModal .summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-left: 10px;
}

#appointmentSummaryModal .summary-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Update colors to match the screenshot */
#appointmentSummaryModal .summary-icon-container {
    background-color: #1976d2; /* Blue */
}

#appointmentSummaryModal .summary-icon-container.phone-icon {
    background-color: #28a745; /* Green */
}

#appointmentSummaryModal .summary-icon-container.specialty-icon {
    background-color: #fd7e14; /* Orange */
}

#appointmentSummaryModal .summary-icon-container.clinic-icon {
    background-color: #6f42c1; /* Purple */
}

#appointmentSummaryModal .summary-icon-container.doctor-icon {
    background-color: #20c997; /* Teal */
}

#appointmentSummaryModal .summary-icon-container.date-icon {
    background-color: #e83e8c; /* Pink */
}

#appointmentSummaryModal .summary-icon-container.time-icon {
    background-color: #6c757d; /* Gray */
}

#appointmentSummaryModal .modal-footer {
    border-top: none;
    padding: 0 20px 20px;
    justify-content: space-between;
}

#appointmentSummaryModal .btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

#appointmentSummaryModal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#appointmentSummaryModal .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    min-width: 180px;
}

#appointmentSummaryModal .btn .english-text,
#appointmentSummaryModal .btn .arabic-text {
    font-size: 14px;
    display: inline-block;
    margin: 0 3px;
}

/* Improve layout for side-by-side text */
.d-flex.justify-content-between {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Bilingual Text Styles */
.english-text {
    font-family: 'Arial', sans-serif;
    text-align: left;
}

.arabic-text {
    font-family: 'Arial', sans-serif;
    text-align: right;
    direction: rtl;
}

.modal-footer .btn .english-text,
.modal-footer .btn .arabic-text {
    display: block;
    line-height: 1.2;
}

.modal-footer .btn .arabic-text {
    font-size: 0.9em;
}

/* Updated Summary Modal Styles */
.summary-box {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.summary-box .d-flex.justify-content-between {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-left: 10px;
}

.summary-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon-container.phone-icon {
    background-color: #28a745;
}

.summary-icon-container.specialty-icon {
    background-color: #fd7e14;
}

.summary-icon-container.clinic-icon {
    background-color: #7952b3;
}

.summary-icon-container.doctor-icon {
    background-color: #20c997;
}

.summary-icon-container.date-icon {
    background-color: #e83e8c;
}

.summary-icon-container.time-icon {
    background-color: #6c757d;
}

/* Modal Title Styles */
#appointmentSummaryModal .modal-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

#appointmentSummaryModal .modal-title .arabic-text {
    color: #28a745;
    font-weight: 600;
}

/* Success Alert Styles */
.alert-success {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

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

/* Available Slots Select Styles */
#availableSlots {
    height: auto;
    padding: 8px 12px;
}

#availableSlots option {
    padding: 8px;
    font-size: 14px;
}

#availableSlots:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#appointmentModal .appointment-details .form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#appointmentModal .appointment-details .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#appointmentModal .appointment-details .form-select option {
    padding: 8px;
}

#appointmentModal .appointment-details .form-select option:hover {
    background-color: #007bff;
    color: white;
}

/* Modal Close Button */
.close-modal {
    font-size: 28px;
    font-weight: 700;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #495057;
    text-decoration: none;
}

#appointmentSummaryModal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 5;
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

/* Add mobile number validation styling */
#patientMobile:focus {
    background-position: right calc(0.375em + 0.1875rem) center;
}

#patientMobile.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

#patientMobile.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Error message styles */
.alert-danger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

/* Bilingual Summary Modal Text Styles */
#summarySpecialty, 
#summaryClinic, 
#summaryDoctor {
    display: flex;
    flex-direction: column;
}

#summarySpecialty .en-text, 
#summaryClinic .en-text, 
#summaryDoctor .en-text {
    font-size: 14px;
    color: #343a40;
    margin-bottom: 2px;
}

#summarySpecialty .ar-text, 
#summaryClinic .ar-text, 
#summaryDoctor .ar-text {
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    text-align: right;
    direction: rtl;
}

/* Ensure value is properly aligned with icon */
#appointmentSummaryModal .summary-icon-container {
    align-self: flex-start;
    margin-top: 5px;
}

/* Doctor work schedule styles */
.work-times-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
    margin-bottom: 6px;
    text-align: right;
    direction: rtl;
}

.work-schedule-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    direction: rtl;
    padding-right: 5px;
}

.work-schedule-container::-webkit-scrollbar {
    width: 5px;
}

.work-schedule-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.work-schedule-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.work-schedule-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.work-day {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.day-name {
    font-size: 13px;
    font-weight: 500;
    color: #0056b3;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 10px;
}

.time-slot-info {
    font-size: 12px;
    color: #555;
}

.no-schedule {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 5px;
}

/* Make the tooltip wider to accommodate the schedule */
.doctor-tooltip {
    width: 350px;
} 