/* CSS for Google Calendar Integration - Blocked Time Slots */

/* Style for busy time slots */
.time-slot.busy-slot {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    position: relative !important;
}

.time-slot.busy-slot:hover {
    background-color: #fecaca !important;
    border-color: #f87171 !important;
}

/* Busy slot indicator */
.time-slot.busy-slot::after {
    content: "Busy" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #dc2626 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Google Calendar connection status indicator */
.google-calendar-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
}

.google-calendar-status.connected {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.google-calendar-status.not-connected {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.google-calendar-status .status-icon {
    width: 1rem !important;
    height: 1rem !important;
    border-radius: 50% !important;
}

.google-calendar-status.connected .status-icon {
    background-color: #22c55e !important;
}

.google-calendar-status.not-connected .status-icon {
    background-color: #f59e0b !important;
}

/* Loading state for schedule */
.schedule-loading {
    position: relative !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.schedule-loading::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    z-index: 10 !important;
}

.schedule-loading::after {
    content: "Updating schedule..." !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #374151 !important;
    font-weight: 500 !important;
    z-index: 11 !important;
}

/* Responsive design for mobile */
@media (max-width: 640px) {
    .time-slot.busy-slot::after {
        font-size: 0.625rem !important;
    }
    
    .google-calendar-status {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .time-slot.busy-slot {
        background-color: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
    }
    
    .time-slot.busy-slot::after {
        color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .time-slot.busy-slot,
    .time-slot.busy-slot:hover {
        transition: none !important;
    }
    
    .google-calendar-loading,
    .google-calendar-error,
    .google-calendar-success,
    .google-calendar-info {
        animation: none !important;
    }
    
    #schedule-loading-state {
        animation: none !important;
    }
}

/* Loading states */
.google-calendar-loading {
    /* Animation removed */
}

.google-calendar-error {
    /* Animation removed */
}

.google-calendar-success {
    /* Animation removed */
}

.google-calendar-info {
    /* Animation removed */
}

/* Initial loading state */
#schedule-loading-state {
    /* Animation removed */
}

/* Current time indicator line in schedule columns */
.current-line {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    pointer-events: none !important;
}
