/**
 * CSS per il frontend del plugin Meeting Scheduler
 */

/* Container principale */
.wms-calendar-container,
.wms-booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header del calendario */
.wms-calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.wms-calendar-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.wms-calendar-description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Widget calendario */
.wms-calendar-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigazione calendario */
.wms-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wms-nav-prev,
.wms-nav-next {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.wms-nav-prev:hover,
.wms-nav-next:hover {
    background: #005a87;
}

.wms-current-month {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Tabella calendario */
.wms-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wms-calendar-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.wms-calendar-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wms-calendar-table td:hover {
    background-color: #f8f9fa;
}

.wms-day {
    min-height: 60px;
    vertical-align: top;
}

.wms-day-number {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.wms-slots-count {
    display: block;
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    margin: 0 auto;
    width: fit-content;
}

/* Stati dei giorni */
.wms-available {
    background-color: #d4edda;
}

.wms-available:hover {
    background-color: #c3e6cb;
}

.wms-unavailable {
    background-color: #f8d7da;
    color: #721c24;
}

.wms-booked {
    background-color: #fff3cd;
    color: #856404;
}

.wms-empty {
    background-color: #f8f9fa;
    cursor: default;
}

.wms-empty:hover {
    background-color: #f8f9fa;
}

/* Slot orari */
.wms-time-slots {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wms-time-slots h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.wms-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.wms-time-slot {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.wms-time-slot:hover {
    background: #005a87;
}

.wms-time-slot.selected {
    background: #28a745;
}

.wms-no-slots {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

/* Legenda */
.wms-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.wms-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.wms-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.wms-legend-color.wms-available {
    background-color: #d4edda;
}

.wms-legend-color.wms-unavailable {
    background-color: #f8d7da;
}

.wms-legend-color.wms-booked {
    background-color: #fff3cd;
}

/* Enhanced Booking Form */
.wms-booking-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Required Field Indicator */
.wms-required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* Enhanced Radio Groups */
.wms-radio-label {
    display: block;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wms-radio-label:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.wms-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wms-radio-label input[type="radio"]:checked + .wms-radio-text {
    font-weight: 600;
    color: #0073aa;
}

.wms-radio-label input[type="radio"]:checked ~ .wms-radio-description {
    color: #0073aa;
}

.wms-radio-label input[type="radio"]:focus + .wms-radio-text::before {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.wms-radio-label input[type="radio"]:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

.wms-radio-text {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    position: relative;
    padding-left: 28px;
}

.wms-radio-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

.wms-radio-label input[type="radio"]:checked + .wms-radio-text::before {
    border-color: #0073aa;
    background: #0073aa;
    box-shadow: inset 0 0 0 3px white;
}

.wms-radio-description {
    font-size: 14px;
    color: #6c757d;
    margin-left: 28px;
    line-height: 1.4;
}

/* Enhanced Fieldset */
fieldset.wms-form-group {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

fieldset.wms-form-group legend {
    font-weight: 600;
    color: #333;
    padding: 0 8px;
    font-size: 16px;
}

/* Calendar Enhancements */
.wms-day.wms-past {
    opacity: 0.4;
    cursor: not-allowed;
}

.wms-day.wms-today {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

.wms-day.wms-today.wms-available {
    background-color: #d1ecf1;
    border-color: #17a2b8;
}

/* Time Slot Enhancements */
.wms-time-display {
    display: block;
    font-weight: 500;
}

.wms-time-slots-help {
    margin-top: 12px;
    font-size: 14px;
    color: #6c757d;
}

.wms-form-step {
    display: none;
}

.wms-form-step.active {
    display: block;
}

.wms-form-step h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.wms-form-group {
    margin-bottom: 20px;
}

.wms-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wms-form-group input,
.wms-form-group textarea,
.wms-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wms-form-group input:focus,
.wms-form-group textarea:focus,
.wms-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.wms-radio-group {
    display: flex;
    gap: 20px;
}

.wms-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.wms-radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.wms-meeting-details {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

/* Navigazione form */
.wms-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wms-form-navigation button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wms-next-step,
.wms-submit-booking {
    background: #0073aa;
    color: white;
}

.wms-next-step:hover,
.wms-submit-booking:hover {
    background: #005a87;
}

.wms-prev-step {
    background: #6c757d;
    color: white;
}

.wms-prev-step:hover {
    background: #545b62;
}

.wms-next-step:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Riepilogo prenotazione */
.wms-booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.wms-booking-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.wms-booking-summary p {
    margin: 8px 0;
    color: #666;
}

.wms-booking-summary strong {
    color: #333;
}

/* Messaggi di stato */
.wms-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: 500;
}

.wms-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wms-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wms-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Enhanced Loading States */
.wms-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.wms-loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: #666;
}

.wms-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: wms-spin 1s linear infinite;
}

.wms-loading-dots {
    display: flex;
    gap: 4px;
}

.wms-loading-dots span {
    width: 8px;
    height: 8px;
    background: #0073aa;
    border-radius: 50%;
    animation: wms-dots-bounce 1.4s ease-in-out infinite both;
}

.wms-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.wms-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.wms-loading-dots span:nth-child(3) { animation-delay: 0s; }

.wms-progress-bar {
    width: 200px;
    height: 4px;
    background: #f3f3f3;
    border-radius: 2px;
    overflow: hidden;
}

.wms-progress-fill {
    height: 100%;
    background: #0073aa;
    border-radius: 2px;
    animation: wms-progress-fill 2s ease-in-out infinite;
}

/* Real-time Update States */
.wms-checking {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wms-checking::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1px solid #f3f3f3;
    border-top: 1px solid #0073aa;
    border-radius: 50%;
    animation: wms-spin 0.8s linear infinite;
}

.wms-updating {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wms-unavailable {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.wms-unavailable:hover {
    background-color: #f8d7da !important;
}

/* Success and Error Animations */
.wms-success-animation {
    animation: wms-success-pulse 1s ease-in-out;
}

.wms-error-animation {
    animation: wms-error-shake 0.5s ease-in-out;
}

.wms-booking-confirmed {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.wms-success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
    animation: wms-success-bounce 0.6s ease-out;
}

.wms-booking-details {
    margin: 20px 0;
    text-align: left;
}

.wms-next-steps {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #c3e6cb;
}

.wms-add-to-calendar {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.wms-add-to-calendar:hover {
    background: #218838;
}

.wms-meeting-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.wms-meeting-link:hover {
    text-decoration: underline;
}

/* Connection Status Indicator */
.wms-connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 9999;
    transition: all 0.3s ease;
}

.wms-connection-status.connected {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wms-connection-status.disconnected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wms-connection-status.error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Notifications */
.wms-notification {
    position: fixed;
    top: 60px;
    right: 20px;
    max-width: 300px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9998;
    animation: wms-slide-in 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wms-notification-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.wms-notification-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wms-notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wms-notification-close {
    float: right;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
}

.wms-notification-close:hover {
    opacity: 1;
}

/* Optimistic Booking States */
.wms-optimistic-booking {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 15px 0;
}

.wms-booking-preview {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

/* Animations */
@keyframes wms-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wms-dots-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wms-progress-fill {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

@keyframes wms-success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wms-success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes wms-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes wms-slide-in {
    from { 
        transform: translateX(100%);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Responsive Design */

/* Mobile First Approach */
@media (max-width: 480px) {
    .wms-calendar-container,
    .wms-booking-form-container {
        padding: 0 10px;
        margin: 0;
    }
    
    .wms-calendar-widget,
    .wms-booking-form {
        padding: 12px;
        margin: 10px 0;
    }
    
    .wms-calendar-header h3 {
        font-size: 20px;
    }
    
    .wms-calendar-description {
        font-size: 14px;
    }
    
    .wms-calendar-table {
        font-size: 14px;
    }
    
    .wms-calendar-table td {
        padding: 4px;
        min-height: 44px; /* Minimum touch target */
    }
    
    .wms-day-number {
        font-size: 12px;
    }
    
    .wms-slots-count {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .wms-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
    
    .wms-time-slot {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 44px; /* Accessibility requirement */
    }
    
    .wms-calendar-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .wms-nav-prev,
    .wms-nav-next {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
        font-size: 12px;
    }
    
    .wms-current-month {
        font-size: 16px;
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .wms-calendar-container,
    .wms-booking-form-container {
        padding: 0 15px;
    }
    
    .wms-calendar-widget,
    .wms-booking-form {
        padding: 16px;
    }
    
    .wms-calendar-table td {
        padding: 6px;
        min-height: 50px;
    }
    
    .wms-day-number {
        font-size: 14px;
    }
    
    .wms-slots-count {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .wms-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .wms-time-slot {
        padding: 10px 6px;
        font-size: 13px;
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .wms-calendar-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .wms-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .wms-form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .wms-form-navigation button {
        width: 100%;
        min-height: 44px;
    }
    
    .wms-form-group input,
    .wms-form-group textarea,
    .wms-form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Improved touch targets */
    .wms-day.wms-available,
    .wms-time-slot:not(:disabled) {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    .wms-form-group {
        margin-bottom: 16px;
    }
    
    .wms-booking-summary {
        padding: 16px;
        margin: 16px 0;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .wms-calendar-container,
    .wms-booking-form-container {
        max-width: 700px;
    }
    
    .wms-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .wms-calendar-container,
    .wms-booking-form-container {
        max-width: 900px;
    }
    
    .wms-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Orientation Support */
@media (orientation: landscape) and (max-height: 500px) {
    .wms-calendar-widget {
        display: flex;
        gap: 20px;
    }
    
    .wms-calendar-navigation {
        flex-direction: column;
        width: 200px;
        flex-shrink: 0;
    }
    
    .wms-calendar-table {
        flex: 1;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .wms-spinner {
        border-width: 1px;
    }
    
    .wms-loading-dots span {
        width: 6px;
        height: 6px;
    }
}

/* Print Styles */
@media print {
    .wms-calendar-navigation,
    .wms-loading-indicator,
    .wms-connection-status,
    .wms-notification {
        display: none !important;
    }
    
    .wms-calendar-container,
    .wms-booking-form-container {
        max-width: none;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .wms-calendar-table,
    .wms-booking-form {
        background: white !important;
        color: black !important;
    }
    
    .wms-time-slot {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}

/* Tema scuro (opzionale) */
@media (prefers-color-scheme: dark) {
    .wms-calendar-container,
    .wms-booking-form-container {
        color: #e0e0e0;
    }
    
    .wms-calendar-widget,
    .wms-booking-form {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .wms-calendar-header h3 {
        color: #e0e0e0;
    }
    
    .wms-calendar-description {
        color: #a0aec0;
    }
    
    .wms-current-month {
        color: #e0e0e0;
    }
    
    .wms-calendar-table th {
        background: #4a5568;
        color: #e0e0e0;
        border-bottom-color: #718096;
    }
    
    .wms-calendar-table td {
        border-color: #4a5568;
    }
    
    .wms-calendar-table td:hover {
        background-color: #4a5568;
    }
    
    .wms-form-group label {
        color: #e0e0e0;
    }
    
    .wms-form-group input,
    .wms-form-group textarea,
    .wms-form-group select {
        background: #4a5568;
        border-color: #718096;
        color: #e0e0e0;
    }
    
    .wms-time-slots,
    .wms-meeting-details {
        background: #4a5568;
    }
} 
/* T
imezone and Localization Styles */

/* Timezone Selector */
.wms-timezone-selector {
    position: relative;
    margin-bottom: 16px;
}

.wms-timezone-search-wrapper {
    position: relative;
}

.wms-timezone-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.wms-timezone-search:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.wms-timezone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wms-timezone-region {
    padding: 8px 16px;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.wms-timezone-option {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.wms-timezone-option:hover {
    background-color: #f8f9fa;
}

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

.wms-timezone-info {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
}

.wms-current-time {
    font-weight: 500;
    color: #0073aa;
}

/* Timezone Indicator */
.wms-timezone-indicator {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* Timezone Notification */
.wms-timezone-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    z-index: 9999;
    max-width: 300px;
    animation: wms-slide-in 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wms-notification-close {
    float: right;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
    color: inherit;
}

.wms-notification-close:hover {
    opacity: 1;
}

/* RTL Support */
.wms-rtl {
    direction: rtl;
}

.wms-rtl .wms-calendar-navigation {
    flex-direction: row-reverse;
}

.wms-rtl .wms-nav-prev,
.wms-rtl .wms-nav-next {
    transform: scaleX(-1);
}

.wms-rtl .wms-form-navigation {
    flex-direction: row-reverse;
}

.wms-rtl .wms-radio-text {
    padding-right: 28px;
    padding-left: 0;
}

.wms-rtl .wms-radio-text::before {
    right: 0;
    left: auto;
}

.wms-rtl .wms-radio-description {
    margin-right: 28px;
    margin-left: 0;
}

.wms-rtl .wms-timezone-notification {
    right: auto;
    left: 20px;
}

.wms-rtl .wms-notification-close {
    float: left;
    margin-right: 10px;
    margin-left: 0;
}

/* Localized Date/Time Formatting */
.wms-date-display,
.wms-time-display {
    font-variant-numeric: tabular-nums;
}

/* Enhanced Calendar for Different Locales */
.wms-calendar-table.wms-locale-ar,
.wms-calendar-table.wms-locale-he {
    direction: rtl;
}

.wms-calendar-table.wms-locale-ja .wms-day-number,
.wms-calendar-table.wms-locale-zh .wms-day-number {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK", sans-serif;
}

/* Mobile Timezone Selector */
@media (max-width: 768px) {
    .wms-timezone-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 400px;
        max-height: 70vh;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .wms-timezone-notification {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .wms-rtl .wms-timezone-notification {
        left: 10px;
        right: 10px;
    }
}

/* High Contrast Mode for Timezone Elements */
@media (prefers-contrast: high) {
    .wms-timezone-search,
    .wms-timezone-dropdown {
        border: 2px solid;
    }
    
    .wms-timezone-option:hover {
        background: Highlight;
        color: HighlightText;
    }
}

/* Reduced Motion for Timezone Animations */
@media (prefers-reduced-motion: reduce) {
    .wms-timezone-notification {
        animation: none;
    }
    
    .wms-timezone-option {
        transition: none;
    }
}

/* Print Styles for Timezone Info */
@media print {
    .wms-timezone-notification,
    .wms-timezone-dropdown {
        display: none !important;
    }
    
    .wms-timezone-indicator {
        color: black !important;
    }
}