/**
 * Chat Pane Component Styles
 * 
 * Consolidated CSS for the chat pane component.
 * All chat pane styling is centralized here for easy maintenance.
 * 
 * Organization:
 * 1. Base Styles (shared)
 * 2. Desktop Styles (lg: breakpoint, min-width: 1024px)
 * 3. Mobile Styles (max-width: 1023px)
 * 4. Component Styles (connector tiles, popups, etc.)
 * 5. Animations & Keyframes
 */

/* ============================================
   BASE STYLES (Shared between mobile and desktop)
   ============================================ */

/* Chat Pane Container */
#chat-pane {
    background-color: #1a1a1b;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    position: relative;
}

/* Message Container - Base */
#message-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-padding-bottom: 1rem;
    touch-action: pan-y;
}

/* Connector Tile Grid - Base */
.connector-tile {
    width: 100%;
}

/* Connector Tiles Grid - Responsive columns */
.connector-tiles-grid {
    display: grid;
    gap: 0.5rem;
}

/* Audio Wave Bars - Base */
.wave-bar {
    width: 3px;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 2px;
    align-self: flex-end;
}

/* Status Text Glint Effect */
.status-text-glint {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        35deg,
        rgb(107, 114, 128) 0%,
        rgb(107, 114, 128) 38%,
        rgba(255, 255, 255, 0.5) 45%,
        rgba(255, 255, 255, 0.5) 55%,
        rgb(107, 114, 128) 62%,
        rgb(107, 114, 128) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlintSweep 3s ease-in-out infinite;
}

/* Textarea - Remove browser defaults */
#chat-input-area,
#chat-input-area-mobile {
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
}

#chat-input-area:focus,
#chat-input-area-mobile:focus {
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Rich Text Toolbar - No transitions */
.rich-text-toolbar {
    transition: none;
}

/* Image Preview Container - No transitions */
.image-preview-container {
    transition: none;
}

/* Chat Pill Container - No transitions */
.chat-pill-container {
    transition: none;
}

/* Expanding Pill Container */
.expanding-pill-container {
    transition: all 0.3s ease;
}

/* Workflow Execution Timestamp - Base */
#chat-pane .workflow-execution-timestamp {
    font-size: 9px;
}

/* Workflow Run History Header - Base */
#chat-pane .run-history-header {
    font-size: 0.6875rem; /* 11px */
}

/* Workflow Run History Empty - Base */
#chat-pane .run-history-empty {
    font-size: 0.6875rem; /* 11px */
}

/* ============================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {
    /* Chat Pane - Height constraints */
    #chat-pane {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    /* Flex Container - Takes remaining space */
    #chat-pane > .flex-1 {
        min-height: 0;
        flex: 1 1 0%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* Message Container - Scrollable */
    #message-container {
        min-height: 0;
        flex: 1 1 0%;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Input Area - Fixed at bottom */
    #chat-pane > div.flex-shrink-0:last-child {
        position: relative;
        z-index: 10;
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: auto;
        background-color: #1a1a1b; /* Revert to original background color */
        border-radius: 20px; /* Rounded all corners */
        padding-left: 0; /* No left padding */
        padding-right: 0; /* No right padding */
        padding-bottom: 0; /* No bottom padding */
        /* Top border that spans edge-to-edge of chat pane using pseudo-element */
        border-top: none; /* Remove regular border */
        overflow: visible; /* Allow pseudo-element to extend beyond */
        margin-left: -10px; /* Extend container to left edge */
        margin-right: -10px; /* Extend container to right edge */
        padding-left: 10px; /* Restore padding for content */
        padding-right: 10px; /* Restore padding for content */
    }
    
    /* Top border pseudo-element that extends edge-to-edge */
    #chat-pane > div.flex-shrink-0:last-child::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0; /* Start at container edge (container already extends with negative margins) */
        right: 0; /* End at container edge */
        height: 1px;
        background-color: rgba(55, 65, 81, 0.5); /* border-gray-700/50 */
        z-index: 1;
        pointer-events: none; /* Don't interfere with interactions */
    }
    
    /* Input Area - When popup is open, add top rounded corners */
    #chat-pane > div.flex-shrink-0:last-child.lg\:rounded-t-\[20px\] {
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
    }
    
    /* Mobile Spacer - Larger on desktop */
    .mobile-spacer {
        height: 7rem;
        min-height: 7rem;
    }
    
    /* Text Input Box Container - Desktop */
    .chat-pill-container {
        border: none; /* Remove all borders */
        border-radius: 20px 20px 20px 20px; /* Rounded bottom corners only */
        box-shadow: none;
        background-color: #1a1a1b; /* Revert to original background color */
        overflow: hidden;
        margin-left: 0; /* No left margin */
        margin-right: 0; /* No right margin */
        margin-bottom: 0; /* No bottom margin */
        padding-left: 0; /* No left padding */
        padding-right: 0; /* No right padding */
        padding-bottom: 0; /* No bottom padding */
    }
    
    /* Ensure border is visible and content doesn't overflow rounded corners */
    .chat-pill-container > * {
        border-radius: inherit;
    }
    
    /* Rich text toolbar and provider/model/memory backgrounds persist during transitions */
    .chat-pill-container > div[x-show],
    .chat-pill-container > div[x-show].px-4.py-2,
    .chat-pill-container > div[x-show].px-4.pt-2,
    .chat-pill-container [x-transition\:enter],
    .chat-pill-container [x-transition\:leave],
    .chat-pill-container [x-transition\:enter-start],
    .chat-pill-container [x-transition\:enter-end],
    .chat-pill-container [x-transition\:leave-start],
    .chat-pill-container [x-transition\:leave-end] {
        background-color: #1a1a1b; /* Revert to original background color */
    }
    
    /* Text Input Box - When popup is open */
    .chat-pill-container.lg\:rounded-t-none {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    
    /* Popup - Desktop border and styling */
    .mobile-connector-popup {
        background-color: #1a1a1b; /* Revert to original background color */
        border: 1px solid rgba(55, 65, 81, 0.5); /* Match text input box border */
        border-bottom: none; /* No bottom border since it connects to input */
        border-radius: 20px 20px 0 0 !important; /* Rounded top corners - override any inline styles */
        padding-left: 0 !important; /* No left padding - override inline classes */
        padding-right: 0 !important; /* No right padding - override inline classes */
        overflow: hidden; /* Ensure rounded corners are visible */
    }
    
    /* Remove padding from popup children that have padding classes */
    .mobile-connector-popup > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* But allow padding for specific internal elements that need it */
    .mobile-connector-popup .connector-tiles-grid {
        padding-left: 0.5rem !important; /* Small padding for grid items */
        padding-right: 0.5rem !important;
    }
    
    /* Tabs inside popup - remove horizontal padding */
    .mobile-connector-popup > div[class*="border-b"] {
        padding-left: 0.5rem !important; /* Small padding for tabs */
        padding-right: 0.5rem !important;
    }
    
    /* Desktop Textarea Styling */
    #chat-input-area {
        font-size: 0.875rem; /* text-sm = 14px to match messages */
        line-height: 1.625; /* leading-relaxed */
        min-height: 96px;
        max-height: 60vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: 1.25rem; /* px-5 */
        padding-right: 3rem; /* pr-12 for plus button space */
        letter-spacing: normal;
        background-color: #1a1a1b; /* Revert to original background color */
        color: rgb(243, 244, 246); /* text-gray-100 to match messages */
        font-weight: 400; /* font-normal */
        border: none;
        outline: none;
        overflow: hidden;
        resize: none;
    }
    
    /* Desktop Textarea Focus state */
    #chat-input-area:focus {
        outline: none;
        border: none;
        background-color: #1a1a1b; /* Revert to original background color */
    }
    
    /* Desktop Textarea Placeholder */
    #chat-input-area::placeholder {
        color: rgba(255, 255, 255, 0.6);
        opacity: 0.6;
    }
    
    #chat-input-area:focus::placeholder {
        color: rgba(255, 255, 255, 0.6);
        opacity: 0.6;
    }
    
    /* Connector Tiles Grid - 3 columns on desktop */
    .connector-tiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    /* Fixed gradient overlay at bottom of message container (desktop only) - fades messages above input box */
    .fixed-top-fade-overlay {
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        bottom: 0; /* Position at bottom instead of top */
        left: 0;
        right: 0;
        width: 100%;
        height: 80px; /* Reduced height - only need small fade at bottom */
        min-height: 80px;
        background: linear-gradient(to top, 
            #1a1a1b 0%,
            #1a1a1b 20%,
            rgba(26, 26, 27, 0.95) 40%,
            rgba(26, 26, 27, 0.8) 60%,
            rgba(26, 26, 27, 0.5) 80%,
            rgba(26, 26, 27, 0.2) 90%,
            rgba(26, 26, 27, 0) 100%
        );
        pointer-events: none;
        z-index: 100; /* High z-index to ensure it's above messages */
        margin-top: -80px; /* Negative margin so it doesn't push content up */
        display: block;
        visibility: visible;
        opacity: 1;
        flex-shrink: 0;
    }
    
    /* Ensure messages render above the overlay */
    #message-container > div:not(.fixed-top-fade-overlay) {
        position: relative;
        z-index: 1;
    }
    
    /* Workflow Execution Timestamp - Desktop */
    #chat-pane .workflow-execution-timestamp {
        font-size: 13px;
    }
    
    /* Workflow Run History Header - Desktop */
    #chat-pane .run-history-header {
        font-size: 0.8125rem; /* 13px */
    }
    
    /* Workflow Run History Empty - Desktop */
    #chat-pane .run-history-empty {
        font-size: 0.8125rem; /* 13px */
    }
}

/* ============================================
   MOBILE STYLES (max-width: 1023px)
   ============================================ */

@media (max-width: 1023px) {
    /* Hide message action icons on mobile by default - only show when clicked */
    .group > div.flex.items-center.gap-2.mt-1.text-xs {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
    
    /* Show icons when message is clicked (handled by Alpine.js inline style) */
    .group > div.flex.items-center.gap-2.text-xs[style*="opacity: 1"] {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }
    
        /* Mobile: Text Input Container */
        .chat-pill-container {
            min-height: auto;
            border-radius: 1rem;
            background: #1a1a1b; /* Match chat pane background */
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 1rem;
            width: 100%;
            margin-left: 0;
            margin-right: 0;
        }
    
    /* Mobile: When popup is open, remove top rounded corners */
    .chat-pill-container.rounded-t-none {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    /* Mobile: Input Container Spacing */
    .mobile-input-container {
        padding: 0 15px 20px 15px;
        margin-bottom: 0;
        position: relative;
    }
    
    /* Mobile: Pill Wrapper */
    .pill-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        position: relative;
    }
    
    /* Mobile textarea wrapper should have proper padding */
    .lg\:hidden.flex.flex-col.w-full {
        padding-bottom: 0;
    }
    
    /* Mobile textarea should expand full width */
    #chat-input-area-mobile {
        width: 100%;
        font-size: 14px;
        line-height: 1.4;
        min-height: 20px;
        max-height: 60vh;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-right: 0.75rem; /* pr-3 */
        text-align: left;
        background-color: transparent;
        border: none;
        outline: none;
        overflow: hidden;
        resize: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* Mobile textarea focus state */
    #chat-input-area-mobile:focus {
        outline: none;
        border: none;
        background-color: transparent;
    }
    
    /* Remove selection highlight on mobile textarea */
    #chat-input-area-mobile::selection {
        background-color: transparent;
        color: inherit;
    }
    
    #chat-input-area-mobile::-moz-selection {
        background-color: transparent;
        color: inherit;
    }
    
    /* Remove focus outline and selection box */
    #chat-input-area-mobile:focus {
        outline: none;
        outline-offset: 0;
        -webkit-tap-highlight-color: transparent;
        box-shadow: none;
        border: none;
    }
    
    /* Remove any browser default styling that creates white box */
    #chat-input-area-mobile:active,
    #chat-input-area-mobile:focus-visible {
        outline: none;
        -webkit-tap-highlight-color: transparent;
        box-shadow: none;
    }
    
    /* Left-align placeholder text */
    #chat-input-area-mobile::placeholder {
        color: rgba(255, 255, 255, 0.6);
        text-align: left;
    }
    
    /* Ensure chat-pane itself doesn't add extra padding on mobile */
    #chat-pane {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    /* Ensure file previews are visible on mobile */
    .mobile-input-container,
    .mobile-input-container > div,
    .chat-input-container {
        display: block;
        visibility: visible;
        opacity: 1;
        overflow: visible;
        height: auto;
        min-height: auto;
    }
    
    /* Force file previews container to be visible */
    .file-previews-container {
        display: block;
        visibility: visible;
        opacity: 1;
        width: 100%;
        position: relative;
        z-index: 10;
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        height: auto;
        min-height: 40px;
    }
    
    /* Override any inline styles Alpine might add */
    .file-previews-container[style*="display: none"],
    .file-previews-container[style*="visibility: hidden"] {
        display: block;
        visibility: visible;
    }
    
    /* Ensure file preview items are visible on mobile */
    .file-preview-item {
        display: flex;
        visibility: visible;
        opacity: 1;
        width: 100%;
        background-color: #2a2a2a;
    }
    
    /* Ensure the space-y-2 container is visible */
    .file-previews-container > .space-y-2 {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Ensure chat-input-container doesn't hide overflow */
    .chat-input-container {
        overflow: visible;
    }
    
    /* Hide fixed gradient overlay on mobile */
    .fixed-top-fade-overlay {
        display: none;
    }
    
    /* Message container padding for mobile */
    #message-container {
        padding-bottom: 120px; /* Enough space for input box + padding */
    }
    
    /* When input is hidden (Workflows/Data tab), reduce padding */
    #chat-pane:has(.mobile-input-container[style*="display: none"]) #message-container,
    #chat-pane:has(.mobile-input-container[x-cloak]) #message-container {
        padding-bottom: 20px;
    }
    
    /* Hide input container on mobile when Workflows or Data tab is selected */
    .mobile-input-container[x-cloak],
    .mobile-input-container[style*="display: none"] {
        display: none;
        visibility: hidden;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    /* Mobile: Connector Popup - Positioning and Base Styles */
    .mobile-connector-popup {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #1a1a1b; /* Match mobile text input box background */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        max-width: 100%;
        z-index: 9999;
        margin: 0;
        margin-bottom: -1px;
        max-height: 55vh;
        border-radius: 20px 20px 0 0 !important; /* Rounded top corners - override any inline styles */
        pointer-events: auto;
        padding-top: 1rem;
        padding-bottom: 0.75rem;
        padding-left: 0 !important; /* No left padding - override inline classes */
        padding-right: 0 !important; /* No right padding - override inline classes */
        overflow: hidden; /* Ensure rounded corners are visible and content doesn't overflow */
    }
    
    /* Remove padding from mobile popup children */
    @media (max-width: 1023px) {
        .mobile-connector-popup > * {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        
        .mobile-connector-popup .connector-tiles-grid {
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }
        
        .mobile-connector-popup > div[class*="border-b"] {
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }
    }
    
    .pill-wrapper .mobile-connector-popup {
        margin-bottom: 0;
    }
    
    /* Mobile: Connector Popup - Content Sizing */
    .mobile-connector-popup .connector-tiles-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }
    
    .mobile-connector-popup button {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
        min-height: auto;
    }
    
    .mobile-connector-popup button .text-lg {
        font-size: 1.25rem;
    }
    
    .mobile-connector-popup button .text-sm {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
    
    .mobile-connector-popup button .text-xs {
        font-size: 0.6875rem;
        line-height: 1.2;
    }
    
    .mobile-connector-popup .text-xs {
        font-size: 0.6875rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-connector-popup .mb-4 {
        margin-bottom: 0.75rem;
    }
    
    .mobile-connector-popup button .flex.items-center.space-x-2 {
        gap: 0.625rem;
    }
    
    .mobile-connector-popup .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Connector Tiles Grid - 2 columns on mobile */
    .connector-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Full Screen Overlay Styles */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fullscreen-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Camera Capture Button - White Circle */
.camera-capture-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: white;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.camera-capture-button:active {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.camera-capture-button-inner {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Camera Close Button - Top Right Corner */
.camera-close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.camera-close-button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-stop-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.fullscreen-stop-button:hover {
    background: #dc2626;
}

/* START/STOP Button Styles */
.fullscreen-start-stop-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 3rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    min-width: 140px;
}

.fullscreen-start-stop-button:hover {
    background: #059669;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.fullscreen-start-stop-button:active {
    transform: translateX(-50%) translateY(0);
}

.fullscreen-start-stop-button.stop-button {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.fullscreen-start-stop-button.stop-button:hover {
    background: #dc2626;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

/* Mobile optimizations for full-screen */
@media (max-width: 1023px) {
    .fullscreen-overlay {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .fullscreen-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
    
    .camera-capture-button {
        bottom: 1.5rem;
        width: 64px;
        height: 64px;
    }
    
    .camera-capture-button-inner {
        width: 54px;
        height: 54px;
    }
    
    .camera-close-button {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .fullscreen-start-stop-button {
        bottom: 1.5rem;
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .fullscreen-stop-button {
        bottom: 1.5rem;
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

/* Audio Wave Bar Animations */
.wave-bar-1 {
    animation: wave1 1.1s ease-in-out infinite;
}

.wave-bar-2 {
    animation: wave2 0.9s ease-in-out infinite;
}

.wave-bar-3 {
    animation: wave3 1.3s ease-in-out infinite;
}

.wave-bar-4 {
    animation: wave4 0.85s ease-in-out infinite;
}

.wave-bar-5 {
    animation: wave5 1.15s ease-in-out infinite;
}

.wave-bar-6 {
    animation: wave6 0.95s ease-in-out infinite;
}

.wave-bar-7 {
    animation: wave7 1.25s ease-in-out infinite;
}

.wave-bar-8 {
    animation: wave8 0.88s ease-in-out infinite;
}

/* Realistic wave patterns - varying heights and timings */
@keyframes wave1 {
    0%, 100% { height: 10px; opacity: 0.5; }
    25% { height: 28px; opacity: 0.9; }
    50% { height: 18px; opacity: 0.7; }
    75% { height: 32px; opacity: 1; }
}

@keyframes wave2 {
    0%, 100% { height: 12px; opacity: 0.6; }
    30% { height: 24px; opacity: 0.8; }
    60% { height: 30px; opacity: 1; }
    90% { height: 16px; opacity: 0.7; }
}

@keyframes wave3 {
    0%, 100% { height: 8px; opacity: 0.4; }
    20% { height: 22px; opacity: 0.8; }
    40% { height: 26px; opacity: 0.9; }
    60% { height: 14px; opacity: 0.6; }
    80% { height: 30px; opacity: 1; }
}

@keyframes wave4 {
    0%, 100% { height: 14px; opacity: 0.7; }
    35% { height: 28px; opacity: 0.95; }
    70% { height: 20px; opacity: 0.8; }
}

@keyframes wave5 {
    0%, 100% { height: 9px; opacity: 0.45; }
    15% { height: 19px; opacity: 0.75; }
    45% { height: 31px; opacity: 1; }
    75% { height: 23px; opacity: 0.85; }
}

@keyframes wave6 {
    0%, 100% { height: 11px; opacity: 0.55; }
    28% { height: 25px; opacity: 0.85; }
    56% { height: 17px; opacity: 0.7; }
    84% { height: 29px; opacity: 0.95; }
}

@keyframes wave7 {
    0%, 100% { height: 13px; opacity: 0.65; }
    22% { height: 27px; opacity: 0.9; }
    44% { height: 15px; opacity: 0.6; }
    66% { height: 32px; opacity: 1; }
    88% { height: 21px; opacity: 0.8; }
}

@keyframes wave8 {
    0%, 100% { height: 10px; opacity: 0.5; }
    40% { height: 26px; opacity: 0.88; }
    80% { height: 18px; opacity: 0.72; }
}

/* Status Text Glint Sweep Animation */
@keyframes textGlintSweep {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

