/* Modern Sonar Appointment Scheduler Styles */
/* Enhanced with clean design, improved typography, and mobile-first responsiveness */

/* CSS Custom Properties for consistent theming */
:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-border: #3b82f6;
    
    --success-color: #059669;
    --success-hover: #047857;
    --success-light: #d1fae5;
    
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #fef2f2;
    
    --warning-color: #d97706;
    --warning-hover: #b45309;
    
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    /* Typography */
    --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-index scale */
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-tooltip: 1100;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Main Container */
#scheduler-widget-container {
    font-family: var(--font-family-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background: none !important;
    border-radius: var(--radius-xl);
    box-shadow: none !important;
    padding: var(--spacing-lg) var(--spacing-md);
    margin: 24px auto 0 auto;
    max-width: 900px;
    min-height: unset;
    position: relative;
    overflow: hidden;
}

/* Typography Enhancements */
#scheduler-widget-container h1,
#scheduler-widget-container h2,
#scheduler-widget-container h3,
#scheduler-widget-container h4,
#scheduler-widget-container h5,
#scheduler-widget-container h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--neutral-900);
    margin: 0 0 var(--spacing-md) 0;
}

#scheduler-widget-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Job Details Section */
#job-details-section {
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.job-details-box {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
    border: 1px solid var(--neutral-200);
    margin-bottom: var(--spacing-sm);
}

.job-details-box h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.job-details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xs);
}

.job-detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-label {
    font-weight: 600;
    color: var(--neutral-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    color: var(--neutral-800);
    font-size: 1rem;
    font-weight: 500;
}

/* Main Scheduler Layout */
#scheduler-section {
    margin: 0;
    padding: 0;
}

.scheduler-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: start;
    min-height: unset;
    margin: 0;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm);
    border: 1px solid var(--neutral-200);
    height: fit-content;
    min-height: unset;
    max-height: unset;
}

.calendar-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--neutral-200);
}

.calendar-header-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0;
}

.month-nav-button {
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.month-nav-button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.month-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Calendar Grid */
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--neutral-500);
    padding: var(--spacing-sm);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-xs);
}

.calendar-date {
    aspect-ratio: 1;
    border: 1px solid var(--neutral-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--neutral-700);
    position: relative;
    overflow: hidden;
}

.calendar-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

.calendar-date span {
    position: relative;
    z-index: 2;
}

.calendar-date:not(.disabled):hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.calendar-date:not(.disabled):hover::before {
    opacity: 0.1;
}

.calendar-date.selected {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.calendar-date.selected::before {
    opacity: 0 !important;
}

.calendar-date.disabled {
    background: var(--neutral-100);
    color: var(--neutral-400);
    cursor: not-allowed;
    border-color: var(--neutral-200);
}

.calendar-date.has-appointments {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

/* Time period dots container */
.time-period-dots {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Individual time period dots */
.time-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

/* All dots use the same color */

/* Selected state - make dots white */
.calendar-date.selected .time-dot {
    background: white !important;
}

/* Remove the old single dot indicator */
.calendar-date.has-appointments::after {
    display: none;
}

.calendar-date.disabled:empty {
    visibility: hidden;
}

/* Time Slots Section */
.time-slots-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-height: none;
    height: fit-content;
}

.time-slots-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Scheduling Instructions when inside time slots section */
.time-slots-container .scheduling-instructions {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-sm) 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--neutral-700);
    border: 1px solid var(--primary-border);
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.time-slots-container .scheduling-instructions p {
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.timezone-indicator {
    background: var(--neutral-100);
    color: var(--neutral-600);
    font-size: 0.875rem;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--neutral-200);
}

.time-period-container {
    margin-bottom: var(--spacing-xl);
}

.time-period-container h3 {
    color: var(--neutral-800);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.time-slot {
    padding: var(--spacing-md);
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--neutral-700);
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

.time-slot span {
    position: relative;
    z-index: 2;
}

.time-slot:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-slot:hover::before {
    opacity: 0.05;
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.time-slot.selected::before {
    opacity: 0;
}

/* Submit Button */
.schedule-submit-button {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-hover) 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: auto;
    min-width: 200px;
    margin: var(--spacing-xl) auto 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.schedule-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.schedule-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.schedule-submit-button:hover:not(:disabled)::before {
    left: 100%;
}

.schedule-submit-button:disabled {
    background: var(--neutral-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading States */
.loading-message {
    text-align: center;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    margin: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--neutral-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message p {
    margin: 0;
    font-size: 1rem;
    color: var(--neutral-600);
    font-weight: 500;
}

/* Messages */
.message {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) 0;
    font-weight: 500;
}

.success-message {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.error-message {
    background: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-xl) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scheduled Job UI */
.scheduled-job-message {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    text-align: center;
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.scheduled-job-message h4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 var(--spacing-xl) 0;
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--success-color);
    text-align: center;
}

.scheduled-job-message h4::before {
    content: '';
    display: block;
    width: 1.8em;
    height: 1.8em;
    min-width: 24px;
    min-height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    margin: 0 0 0.5em 0;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l5 5l7-9'/%3E%3C/svg%3E");
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.scheduled-job-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Action Buttons */
.reschedule-button,
.cancel-button,
.add-to-calendar-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.reschedule-button {
    background: var(--primary-color);
    color: white;
}

.reschedule-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cancel-button {
    background: var(--danger-color);
    color: white;
}

.cancel-button:hover:not(:disabled) {
    background: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.add-to-calendar-btn {
    background: var(--neutral-600);
    color: white;
    position: relative;
}

.add-to-calendar-btn:hover:not(:disabled) {
    background: var(--neutral-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Button Icons */
.calendar-icon,
.pencil-icon,
.cancel-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

/* Pencil icon for reschedule */
.pencil-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%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%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='m18.5 2.5 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

/* Cancel/X icon */
.cancel-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%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%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

/* Calendar icon */
.calendar-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("data:image/svg+xml,%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%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

/* Calendar Dropdown */
.atcb-dropdown {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: var(--spacing-sm);
    min-width: 220px;
    overflow: hidden;
    z-index: var(--z-dropdown);
    border: 1px solid var(--neutral-200);
    position: relative;
}

.atcb-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid var(--neutral-200);
    border-top: 1px solid var(--neutral-200);
    z-index: -1;
}

.atcb-option {
    background: white;
    color: var(--neutral-700);
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.atcb-option:last-child {
    border-bottom: none;
}

.atcb-option:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Reschedule Header */
.reschedule-header-container {
    display: flex;
    align-items: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: var(--spacing-xl);
    width: 100%;
}

.reschedule-heading {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.back-button {
    background: transparent;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-right: var(--spacing-lg);
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .scheduler-main-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: var(--spacing-lg);
    }
    
    .job-details-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .time-slot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 767px) {
    #scheduler-widget-container {
        padding: var(--spacing-sm) !important;
        margin: var(--spacing-xs) !important;
        max-width: 100% !important;
    }
    .calendar-section,
    .time-slots-section,
    .job-details-box {
        padding: var(--spacing-xs) !important;
    }
    .scheduler-main-content {
        gap: var(--spacing-xs) !important;
    }
}

@media (max-width: 480px) {
    #scheduler-widget-container {
        padding: var(--spacing-sm) !important;
        margin: 0 !important;
        border-radius: var(--radius-md) !important;
    }
    
    .calendar-section,
    .time-slots-section,
    .job-details-box {
        padding: var(--spacing-sm) !important;
    }
    
    .time-slots-section {
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* Even smaller calendar for very small screens */
    .calendar-header {
        gap: 1px;
    }
    
    .calendar-day-header {
        padding: 2px;
        font-size: 0.7rem;
    }
    
    .calendar-grid {
        gap: 1px;
    }
    
    .calendar-date {
        font-size: 0.75rem;
        min-height: 28px;
    }
    
    /* Even smaller dots for very small screens */
    .time-period-dots {
        bottom: 1px;
        gap: 1px;
    }
    
    .time-dot {
        width: 2px;
        height: 2px;
    }
    
    /* Smaller time slots for very small screens */
    .time-slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 4px;
    }
    
    .time-slot {
        font-size: 0.75rem;
        padding: 6px;
        min-height: 36px;
    }
    
    .schedule-submit-button {
        width: 100%;
        min-width: auto;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .scheduled-job-message {
        padding: var(--spacing-md);
    }
    
    .scheduled-job-message h4 {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* Adjust job details for very small screens */
    .job-details-content {
        gap: var(--spacing-sm);
    }
    
    .detail-label {
        font-size: 0.8rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    

}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.calendar-date:focus,
.time-slot:focus,
.month-nav-button:focus,
.schedule-submit-button:focus,
.reschedule-button:focus,
.cancel-button:focus,
.add-to-calendar-btn:focus,
.back-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --success-color: #006400;
        --danger-color: #8b0000;
        --neutral-200: #000000;
        --neutral-300: #000000;
        --neutral-400: #000000;
        --neutral-500: #000000;
        --neutral-600: #000000;
        --neutral-700: #000000;
        --neutral-800: #000000;
        --neutral-900: #000000;
    }
}

/* Print Styles */
@media print {
    #scheduler-widget-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .scheduled-job-actions,
    .month-nav-button,
    .schedule-submit-button {
        display: none;
    }
}

/* Remove the old absolute icon solution */
.scheduled-job-message::before,
.scheduled-job-message::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 1200px) {
    #scheduler-widget-container {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

.scheduled-job-support-tip {
    margin-top: var(--spacing-md);
    font-size: 0.92rem;
    color: var(--neutral-600);
    text-align: center;
}
.scheduled-job-support-tip a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}
