/**
 * Appointment Management Styles
 * 
 * Styles for the appointment_management shortcode
 * 
 * MOBILE OPTIMIZATION NOTES:
 * For optimal mobile experience, ensure your page includes:
 * <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
 * 
 * This prevents zooming on form inputs and ensures proper mobile layout.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=svg");

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Touch-friendly mobile improvements */
@media (max-width: 768px) {
    /* Ensure all interactive elements are touch-friendly */
    button, .toggle-details, .add-customer, .book-package, .remove-customer, 
    .week-nav-button, .appointment-filter-btn, .add-appointment-button, .logout-button {
        min-height: 44px; /* iOS recommended touch target size */
        min-width: 44px;
        touch-action: manipulation; /* Prevents zoom on double-tap */
    }
    
    /* Improve text readability on mobile */
    body {
        font-size: 16px; /* Prevents zoom on iOS */
        line-height: 1.5;
    }
    
    /* Prevent horizontal scroll */
    .amelia-appointments {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Better spacing for touch */
    .appointment-row {
        margin-bottom: 20px;
    }
    
    /* Larger tap targets for buttons */
    .toggle-details, .add-customer, .book-package {
        padding: 14px 20px;
        margin: 8px 0;
        border-radius: 10px;
        font-weight: 600;
        text-align: center;
    }
}

.amelia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}



.logout-button {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-bar {
    margin-bottom: 20px;
    text-align: center;
}

.toggle-filter {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toggle-filter.active {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.amelia-appointments {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #e5e7eb;
}

.amelia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.provider-info {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.authentication-required,
.access-denied {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.authentication-required h3,
.access-denied h3 {
    color: #dc2626;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.authentication-required p,
.access-denied p {
    color: #7f1d1d;
    margin: 5px 0;
    font-size: 14px;
}

.access-denied {
    background: #fffbeb;
    border-color: #fed7aa;
}

.access-denied h3 {
    color: #d97706;
}

.access-denied p {
    color: #92400e;
}

/* Amelia Login Panel Styles */
#ameliaLoginWrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

#ameliaLoginWrapper .amelia-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Ensure the login panel is responsive */
@media (max-width: 768px) {
    #ameliaLoginWrapper {
        padding: 15px;
        margin-top: 15px;
    }
    
    .authentication-required,
    .access-denied {
        padding: 15px;
        margin: 15px 0;
    }
    
    .authentication-required h3,
    .access-denied h3 {
        font-size: 16px;
    }
    
    .authentication-required p,
    .access-denied p {
        font-size: 13px;
    }
}

.add-appointment-button {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-appointment-button:hover {
    background: linear-gradient(135deg, #bfa2d6 0%, #c4a3d8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Print button styling */
.print-button {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.print-button:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}







.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    text-align: left;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.025em;
}

.section-title::after {
    display: none;
}

.no-appointments {
    text-align: center;
    color: #718096;
    font-size: 16px;
    margin: 20px 0;
}

.error-message {
    text-align: center;
    color: #e53e3e;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0;
    background: #fff5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.appointments-table th,
.appointments-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    vertical-align: middle;
}

.appointments-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

/* Date Header Styling */
.date-header {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 16px 20px !important;
    text-align: center !important;
    border-bottom: none !important;
}

.date-header th {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%) !important;
    color: #fff !important;
    border-bottom: none !important;
    padding: 16px 20px !important;
}

/* Appointment Row Styling */
.appointment-row {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    background-color: #ffffff;
}

.appointment-row:hover {
    background-color: #f8fafc;
}

.appointment-row td {
    padding: 16px 20px;
    vertical-align: middle;
}

/* Time Column */
.appointment-row td:first-child {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* Service Column */
.appointment-row td:nth-child(2) {
    font-weight: 500;
    color: #1f2937;
}

/* Instructor Column */
.appointment-row td:nth-child(3) {
    color: #6b7280;
    font-size: 13px;
}

/* Spots Column */
.appointment-row td:nth-child(4) {
    text-align: center;
    font-weight: 600;
    color: #374151;
}

/* Editable cell styling */
.editable {
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.editable:hover {
    background-color: #f8f9fa;
}

.editable:focus {
    background-color: #fff;
    outline: 2px solid #007cba;
    outline-offset: -2px;
    border-radius: 4px;
}

.editable[contenteditable="true"]:focus {
    background-color: #fff;
    box-shadow: inset 0 0 0 2px #007cba;
}

/* Customer input section */
.customer-input-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.customer-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.customer-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.appointment-row {
    transition: background-color 0.3s ease;
}

.appointment-row:hover {
    background-color: #f7fafc;
}

.toggle-details {
    background: #f8f5fb;
    color: #8b0273;
    border: 1px solid #e6d9f2;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 4px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-indent: 0 !important;
    overflow: visible !important;
}

.add-customer, .book-package {
    background: #c4a3d8;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 4px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toggle-details:hover {
    background: #f1e9f7;
    border-color: #d4bfe7;
    color: #7a0264;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(139, 2, 115, 0.1);
}

.add-customer:hover, .book-package:hover {
    background: #bfa2d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-details {
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 5px 0;
}

.customer-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customer-details li {
    padding: 8px 0;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
}

.customer-details li:last-child {
    border-bottom: none;
}

.customer-details li.status-canceled {
    color: #e53e3e;
}

.customer-details li.status-approved {
    color: #8943bf;
}

.customer-details li .status {
    font-size: 12px;
    font-weight: 500;
}

/* Customer info and remove button layout */
.customer-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
}

.customer-details li .customer-info {
    flex: 1;
}

.remove-customer {
    background: linear-gradient(135deg, #e53e3e, rgba(229, 62, 62, 0.8));
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 10px;
    min-width: 60px;
}

.remove-customer:hover {
    background: linear-gradient(135deg, #c53030, rgba(197, 48, 48, 0.8));
    transform: translateY(-1px);
}

.remove-customer:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* Message styles */
.amelia-message {
    animation: slideIn 0.3s ease-out;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #2d3748;
}

.modal-close:hover {
    color: #e53e3e;
}

.customer-search {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.customer-results {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.customer-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customer-results li {
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s ease;
}

.customer-results li:last-child {
    border-bottom: none;
}

.customer-results li:hover {
    background-color: #f7fafc;
}

.customer-results p {
    padding: 10px;
    margin: 0;
    color: #718096;
    font-style: italic;
}

.packages-list {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.packages-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.packages-list li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.packages-list li:last-child {
    border-bottom: none;
}

.packages-list .no-packages {
    color: #718096;
    font-style: italic;
}

.error-text {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #f6f2fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: #c4a3d8;
    border-radius: 8px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.3);
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 1;
}

.progress-fill.full {
    background: linear-gradient(to right, #e53e3e, rgba(229, 62, 62, 0.8));
}

.progress-fill.warning {
    background: linear-gradient(to right, #ed8936, rgba(237, 137, 54, 0.8));
}

.week-nav-button {
    background: #fff;
    color: #a084b4;
    border: 1.5px solid #c4a3d8;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.week-nav-button:hover {
    background: #f6f2fa;
    color: #7a5e99;
    border-color: #bfa2d6;
}

.week-nav-button.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 16px;
}

.navigation-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.week-display {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    padding: 0;
    border: none;
}

/* Filter Options Styling */
.filter-options {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

/* Appointment Filter Buttons - Standard Design */
.appointment-filter-btn {
    background: #fff;
    color: #a084b4;
    border: 1.5px solid #c4a3d8;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-block;
    text-align: center;
    min-width: 120px;
    margin-right: 10px;
}

.appointment-filter-btn:hover {
    background: #f6f2fa;
    color: #7a5e99;
    border-color: #bfa2d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.appointment-filter-btn.active {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    color: #fff;
    border-color: #bfa2d6;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.appointment-filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 163, 216, 0.3);
}

/* CRITICAL: Ensure filter buttons are never treated as toggle details */
.appointment-filter-btn {
    /* Override any toggle-details styles */
    background: #fff !important;
    color: #a084b4 !important;
    border: 1.5px solid #c4a3d8 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    /* Remove any toggle-details specific styles */
    transform: none !important;
    transition: all 0.2s ease !important;
}

.appointment-filter-btn:hover {
    background: #f6f2fa !important;
    color: #7a5e99 !important;
    border-color: #bfa2d6 !important;
    transform: translateY(-1px) !important;
}

.appointment-filter-btn.active {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%) !important;
    color: #fff !important;
    border-color: #bfa2d6 !important;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Main container */
    .amelia-appointments {
        margin: 10px;
        padding: 0;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Header adjustments */
    .amelia-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 12px;
    }
    
    .header-left, .header-right {
        text-align: center;
    }
    
    .header-right {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .add-appointment-button, .logout-button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    
    /* Week navigation mobile optimization */
    .week-navigation {
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        text-align: center;
    }
    
    .filter-options {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .appointment-filter-btn {
        flex: 1;
        margin-right: 0;
        padding: 10px 8px;
        font-size: 12px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        position: relative;
    }
    
    /* Shorter text for mobile - hide original text and show shorter version */
    #show-all-appointments {
        text-indent: -9999px;
    }
    
    #show-all-appointments::before {
        content: "All Appointments";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
        width: 100%;
        text-align: center;
    }
    
    #show-my-appointments {
        text-indent: -9999px;
    }
    
    #show-my-appointments::before {
        content: "My Appointments";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
        width: 100%;
        text-align: center;
    }
    
    .navigation-controls {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .week-nav-button {
        font-size: 12px;
        padding: 8px 12px;
        margin: 2px;
        flex: 1;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }
    
    .week-display {
        order: -1;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    /* Table transformation for mobile */
    .appointments-table-container {
        padding: 0 10px;
        overflow: visible;
    }
    
    .appointments-table {
        border: 0;
        width: 100%;
    }
    
    .appointments-table thead {
        display: none;
    }
    
    .appointments-table tbody {
        display: block;
    }
    
    /* Date headers */
    .appointments-table .date-header {
        display: block !important;
        text-align: center !important;
        margin: 20px 0 15px 0;
        padding: 12px !important;
        border-radius: 8px;
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    
    /* Appointment rows as cards */
    .appointment-row {
        display: block !important;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    /* Filtered hidden appointments and date headers */
    .filtered-hidden {
        display: none !important;
    }
    
    .appointment-row:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    .appointment-row td {
        display: block !important;
        text-align: left !important;
        padding: 8px 0 !important;
        border: none !important;
        position: relative;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .appointment-row td:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile labels */
    .appointment-row td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
        margin-bottom: 4px;
        width: 100%;
    }
    
    /* Time styling */
    .appointment-row td:first-child {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
    }
    
    /* Service name prominent */
    .appointment-row td:nth-child(2) {
        font-size: 16px;
        font-weight: 600;
        color: #8b5cf6;
        margin-bottom: 12px !important;
    }
    
    /* Progress bar container */
    .progress-bar {
        width: 100%;
        margin: 12px 0;
        height: 20px;
    }
    
    .progress-label {
        font-size: 12px;
        font-weight: 700;
    }
    
    /* Buttons full width */
    .toggle-details, .add-customer, .book-package {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
    }
    
    /* Details row - hidden by default on mobile */
    .details-row {
        display: none !important;
    }
    
    .details-row.show {
        display: block !important;
    }
    
    .details-row td {
        padding: 0 !important;
        border: none !important;
    }
    
    .customer-details {
        margin: 12px 0;
        padding: 16px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    
    .customer-details li {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
        gap: 8px;
    }
    
    .customer-details .customer-info {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .remove-customer {
        align-self: flex-start;
        margin-left: 0;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Modal improvements */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        padding: 16px;
        border-radius: 12px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 16px 20px;
        margin: -16px -16px 20px -16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    /* Authentication panels */
    .authentication-required, .access-denied {
        margin: 10px;
        padding: 16px;
        border-radius: 10px;
    }
    
    #ameliaLoginWrapper {
        margin: 10px;
        padding: 16px;
        border-radius: 10px;
    }
    
    /* No appointments message */
    .no-appointments {
        padding: 20px;
        margin: 20px 10px;
        background: #f8fafc;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .amelia-appointments {
        margin: 5px;
        border-radius: 10px;
    }
    
    .amelia-header {
        padding: 12px 16px;
        margin-bottom: 0;
    }
    
    .provider-info {
        font-size: 12px;
    }
    
    .add-appointment-button, .logout-button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .week-navigation {
        padding: 12px 16px;
    }
    
    .week-display {
        font-size: 14px;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .appointment-filter-btn {
        padding: 8px 6px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
    }
    
    /* Even shorter text for very small screens */
    #show-all-appointments::before {
        content: "All";
    }
    
    #show-my-appointments::before {
        content: "Mine";
    }
    
    .week-nav-button {
        font-size: 11px;
        padding: 8px 6px;
        margin: 1px;
        flex: 1;
        min-width: 0;
    }
    
    .navigation-controls {
        display: flex;
        flex-direction: row;
        gap: 4px;
        width: 100%;
    }
    
    /* Appointment cards */
    .appointment-row {
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .appointment-row td:first-child {
        font-size: 16px;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .appointment-row td:nth-child(2) {
        font-size: 15px;
        margin-bottom: 10px !important;
    }
    
    .appointment-row td {
        font-size: 13px;
        padding: 6px 0 !important;
        margin-bottom: 6px;
    }
    
    .appointment-row td::before {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .progress-bar {
        height: 18px;
        margin: 10px 0;
    }
    
    .progress-label {
        font-size: 11px;
    }
    
    .toggle-details, .add-customer, .book-package {
        padding: 10px;
        font-size: 13px;
        margin-top: 10px;
    }
    
    .customer-details {
        padding: 12px;
        margin: 10px 0;
    }
    
    .customer-details li {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .remove-customer {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 98%;
        margin: 5px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 12px 16px;
        margin: -12px -12px 16px -12px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    /* Authentication panels */
    .authentication-required, .access-denied {
        margin: 5px;
        padding: 12px;
    }
    
    .authentication-required h3, .access-denied h3 {
        font-size: 16px;
    }
    
    .authentication-required p, .access-denied p {
        font-size: 13px;
    }
    
    #ameliaLoginWrapper {
        margin: 5px;
        padding: 12px;
    }
    
    .no-appointments {
        padding: 16px;
        margin: 16px 5px;
        font-size: 14px;
    }
}

/* Print styles for appointment table */
@media print {
    .amelia-appointment-table td {
        text-align: left !important;
        vertical-align: middle !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .amelia-appointment-table th {
        background: #d0d0d0 !important;
        font-weight: bold !important;
        color: #000 !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 1px !important;
        text-align: center !important;
        font-family: 'Arial', sans-serif !important;
        padding: 12px 8px !important;
        border-bottom: 3px solid #000 !important;
    }
}

/* Large modal for appointment creation */
.large-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal steps */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

/* Form layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #a084b4;
    font-size: 14px;
}

.form-group select,
.form-group input {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Step buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #c4a3d8;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-primary:hover:not(:disabled) {
    background: #bfa2d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 163, 216, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f6f2fa;
    color: #a084b4;
    border: 2px solid #c4a3d8;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Appointment summary */
.appointment-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.appointment-summary h5 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 16px;
}

#appointment-summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

/* Customer selection section */
.customer-selection-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.search-section {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.search-section label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #a084b4;
    font-size: 14px;
    display: block;
}

.search-section input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.search-section input:focus {
    outline: none;
    border-color: #c4a3d8;
    box-shadow: 0 0 0 3px rgba(196, 163, 216, 0.15);
}

.selected-customers-list {
    background: #f6f2fa;
    border: 2px solid #c4a3d8;
    border-radius: 12px;
    padding: 24px;
}

.selected-customers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.selected-customers-list h5 {
    margin: 0 0 20px 0;
    color: #a084b4;
    font-size: 18px;
    font-weight: 600;
}

#selected-customers-container {
    max-height: 300px;
    overflow-y: auto;
}

.selected-customer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.selected-customer-item:hover {
    border-color: #c4a3d8;
    box-shadow: 0 2px 8px rgba(196, 163, 216, 0.15);
}

.selected-customer-info {
    flex: 1;
}

.selected-customer-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.selected-customer-package {
    font-size: 12px;
    color: #6b7280;
}

.remove-selected-customer {
    background: linear-gradient(135deg, #e53e3e, rgba(229, 62, 62, 0.8));
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-selected-customer:hover {
    background: linear-gradient(135deg, #dc2626, rgba(220, 38, 38, 0.8));
}

/* Enhanced Responsive design for appointment creation modal */
@media (max-width: 768px) {
    #appointment-creation-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .large-modal, #appointment-creation-modal .large-modal {
        width: 98%;
        max-width: none;
        max-height: 95vh;
        margin: 0;
        border-radius: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: #f6f2fa;
        z-index: 10;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group select, .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        border: 2px solid #e5e7eb;
    }
    
    .customer-selection-section {
        gap: 16px;
    }
    
    .search-section,
    .selected-customers-list {
        padding: 16px;
        border-radius: 10px;
    }
    
    .search-section input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    .selected-customers-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .selected-customer-item {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 16px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        min-height: 50px;
    }
    
    /* Customer search results */
    #new-customer-search-results {
        max-height: 180px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .customer-result {
        padding: 14px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
        min-height: 50px;
        display: flex;
        align-items: center;
    }
    
    /* Bypass option mobile */
    .bypass-option {
        padding: 16px;
        margin: 12px 0;
        border-radius: 10px;
    }
    
    .bypass-option label {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .bypass-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
} 

/* Appointment Creation Modal Styles */
#appointment-creation-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: opacity 0.3s ease;
    overflow: hidden !important;
}

#appointment-creation-modal.show {
    display: flex !important;
    opacity: 1;
}

/* Ensure modal backdrop covers everything */
body.modal-open #appointment-creation-modal,
#appointment-creation-modal.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important;
}

.large-modal, #appointment-creation-modal .large-modal {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(196, 163, 216, 0.25) !important;
    border: 2px solid #c4a3d8 !important;
    max-width: 1200px !important;
    width: 95vw !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    position: relative !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.large-modal:hover {
    transform: scale(1.01);
}

.modal-body {
    padding: 32px !important;
}

.step-buttons {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 40px !important;
    padding-top: 24px !important;
    border-top: 2px solid #c4a3d8 !important;
    gap: 16px !important;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(196, 163, 216, 0.3) !important;
}

@media (max-width: 768px) {
    .large-modal {
        border-radius: 8px !important;
        width: 100vw !important;
        max-width: none !important;
        max-height: 100vh !important;
    }
}

.modal-header {
    background: #f6f2fa;
    border-bottom: 2px solid #c4a3d8;
    border-radius: 16px 16px 0 0;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #a084b4;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #a084b4;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: #e9e0f3;
    color: #7a5e99;
}

.modal-step h4 {
    border-bottom: 2px solid #c4a3d8;
    color: #a084b4;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #c4a3d8;
    box-shadow: 0 0 0 3px rgba(196, 163, 216, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #c4a3d8 0%, #bfa2d6 100%);
    color: #fff;
}
.btn-primary:hover:not(:disabled) {
    background: #bfa2d6;
}

.btn-secondary {
    background: #f6f2fa;
    color: #a084b4;
    border: 2px solid #c4a3d8;
}
.btn-secondary:hover {
    background: #e9e0f3;
    border-color: #bfa2d6;
    color: #7a5e99;
}

.step-buttons {
    border-top: 2px solid #c4a3d8;
}

.modal-body {
    padding: 32px;
}

.modal-step h4 {
    margin: 0 0 24px 0;
    color: #a084b4;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #c4a3d8;
    padding-bottom: 12px;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.modal-step h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group select,
.form-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Appointment Summary */
.appointment-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.appointment-summary h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

/* Customer Summary */
.customer-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.customer-summary h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: #555;
}

.summary-value {
    color: #333;
}

/* Customer Selection Section */
.customer-selection-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.search-section {
    display: flex;
    flex-direction: column;
}

.search-section label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.search-section input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

#new-customer-search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.customer-result {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.customer-result:hover {
    background: #f8f9fa;
}

.customer-result:last-child {
    border-bottom: none;
}

.selected-customers-list {
    display: flex;
    flex-direction: column;
}

.selected-customers-list h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

#selected-customers-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    padding: 10px;
}

.selected-customer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.selected-customer-item:last-child {
    margin-bottom: 0;
}

.selected-customer-info {
    flex: 1;
}

.selected-customer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.selected-customer-package {
    font-size: 0.9em;
    color: #666;
}

.remove-selected-customer {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-selected-customer:hover {
    background: #c82333;
}

/* Package Selection Overlay - Must be above appointment modal */
.package-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}

.package-selection-modal {
    background: white !important;
    border-radius: 8px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative !important;
    z-index: 999999 !important;
}

.package-selection-modal h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
}

.package-selection-modal select,
.package-selection-modal input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
}

.package-selection-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .customer-selection-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    #appointment-creation-modal .large-modal {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .package-buttons {
        flex-direction: column;
    }
}

/* Bypass Option Styles */
.bypass-option {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.bypass-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.bypass-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #be9ad6;
}

.bypass-description {
    margin-left: 28px;
    color: #6c757d;
}

.bypass-description small {
    font-size: 12px;
    line-height: 1.4;
}

.full-width {
    width: 100%;
}

/* Bypass indicator styles */
.bypass-indicator {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bypass-indicator::before {
    content: "⚠️";
    font-size: 14px;
} 

@media print {
    .amelia-appointment-table td {
        text-align: left !important;
        vertical-align: middle !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .amelia-appointment-table th {
        background: #d0d0d0 !important;
        font-weight: bold !important;
        color: #000 !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 1px !important;
        text-align: center !important;
        font-family: 'Arial', sans-serif !important;
        padding: 12px 8px !important;
        border-bottom: 3px solid #000 !important;
    }
} 

#appointment-creation-modal {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#appointment-creation-modal.show {
    opacity: 1;
}

.large-modal {
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

#appointment-creation-modal.show .large-modal {
    transform: scale(1);
}

@media (max-width: 768px) {
    #appointment-creation-modal {
        padding: 10px;
    }

    .large-modal {
        width: 100% !important;
        max-width: none !important;
        border-radius: 8px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-buttons {
        flex-direction: column;
    }
} 