/* ==========================================================================
   SEVASATHI COPILOT CHATBOT - PREMIUM CHAT APP UI (CSS)
   Design: Modern messaging app aesthetic (Apple Messages + Telegram + ChatGPT)
   Colors: Navy, Cyan glow (#29B6F6), Frosted Glassmorphism
   Theme: Supports seamless Dark & Light Modes
   ========================================================================== */

/* 1. Main Chat Window Floating Frame */
#consultant-chat-window {
    position: fixed !important;
    bottom: 24px !important;
    right: 28px !important;
    width: 380px !important;
    height: 570px !important;
    max-height: calc(100vh - 90px) !important;
    z-index: 1055 !important;
    display: none;
    flex-direction: column !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
    background: rgba(10, 10, 10, 0.94) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 36px rgba(0, 123, 167, 0.25), 0 0 16px rgba(255, 45, 149, 0.15) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Light Theme Window */
html.light #consultant-chat-window,
[data-theme="light"] #consultant-chat-window {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 30px rgba(14, 165, 233, 0.12) !important;
}

/* 2. Chat Header Bar */
#consultant-chat-window .chat-header-bar,
#consultant-chat-window > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.98) 0%, rgba(12, 12, 12, 0.95) 100%) !important;
    flex-shrink: 0 !important;
}

html.light #consultant-chat-window .chat-header-bar,
html.light #consultant-chat-window > div:first-child,
[data-theme="light"] #consultant-chat-window .chat-header-bar,
[data-theme="light"] #consultant-chat-window > div:first-child {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

/* Avatar Wrapper & Glowing Ring */
.chat-avatar-wrapper {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 123, 167, 0.6) !important;
    box-shadow: 0 0 12px rgba(0, 123, 167, 0.4) !important;
    background: #0A0A0A !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.chat-avatar-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Pulsing Active Status Indicator */
.chat-status-dot {
    position: absolute !important;
    bottom: 1px !important;
    right: 1px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    border: 2px solid #0B1222 !important;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7) !important;
}

html.light .chat-status-dot,
[data-theme="light"] .chat-status-dot {
    border-color: #FFFFFF !important;
}

/* Header Text Info */
.chat-header-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    margin-left: 12px !important;
    flex-grow: 1 !important;
}

.chat-header-title {
    margin: 0 !important;
    font-size: 0.93rem !important;
    font-weight: 700 !important;
    color: #F8FAFC !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
}

html.light .chat-header-title,
[data-theme="light"] .chat-header-title {
    color: #0F172A !important;
}

.chat-header-status {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: #38BDF8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1 !important;
}

html.light .chat-header-status,
[data-theme="light"] .chat-header-status {
    color: #0284C7 !important;
}

/* Header Action Buttons (Mute / Close) */
.chat-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.chat-header-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #94A3B8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.chat-header-btn:hover {
    background: rgba(41, 182, 246, 0.16) !important;
    border-color: rgba(41, 182, 246, 0.35) !important;
    color: #38BDF8 !important;
    transform: scale(1.06) !important;
}

#restart-chat-btn:hover {
    background: rgba(0, 123, 167, 0.22) !important;
    border-color: rgba(0, 123, 167, 0.45) !important;
    color: #38BDF8 !important;
    transform: rotate(90deg) scale(1.06) !important;
}

#close-chat-btn:hover {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #F87171 !important;
}

html.light .chat-header-btn,
[data-theme="light"] .chat-header-btn {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #64748B !important;
}

html.light .chat-header-btn:hover,
[data-theme="light"] .chat-header-btn:hover {
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
    color: #0284C7 !important;
}

/* 3. Chat Messages Body */
#chat-body {
    padding: 16px !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: radial-gradient(ellipse at 80% 0%, rgba(41, 182, 246, 0.05) 0%, transparent 65%), #0A0F1D !important;
    scroll-behavior: smooth !important;
}

html.light #chat-body,
[data-theme="light"] #chat-body {
    background: radial-gradient(ellipse at 80% 0%, rgba(14, 165, 233, 0.05) 0%, transparent 65%), #F8FAFC !important;
}

/* Sleek Minimal Custom Scrollbar */
#chat-body::-webkit-scrollbar {
    width: 5px !important;
}
#chat-body::-webkit-scrollbar-track {
    background: transparent !important;
}
#chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 9999px !important;
}
#chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(41, 182, 246, 0.45) !important;
}
html.light #chat-body::-webkit-scrollbar-thumb,
[data-theme="light"] #chat-body::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15) !important;
}
html.light #chat-body::-webkit-scrollbar-thumb:hover,
[data-theme="light"] #chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.4) !important;
}

/* 4. Chat Message Bubbles */

/* USER MESSAGE BUBBLE (Right-aligned, Brand Cyan Gradient) */
.chat-bubble-user {
    align-self: flex-end !important;
    margin-left: auto !important;
    max-width: 82% !important;
    background: linear-gradient(135deg, #007BA7 0%, #0093C7 50%, #FF2D95 100%) !important;
    color: #FFFFFF !important;
    padding: 10px 15px !important;
    border-radius: 18px 18px 4px 18px !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28), 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    word-break: break-word !important;
    animation: userBubbleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* BOT MESSAGE BUBBLE (Left-aligned, Clean Frosted Card) */
.chat-bubble-bot {
    align-self: flex-start !important;
    margin-right: auto !important;
    max-width: 88% !important;
    background: rgba(22, 32, 54, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
    padding: 12px 16px !important;
    border-radius: 18px 18px 18px 4px !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
    word-break: break-word !important;
    animation: botBubbleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

html.light .chat-bubble-bot,
[data-theme="light"] .chat-bubble-bot {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #1E293B !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Formatting within Bot Bubbles */
.chat-bubble-bot strong {
    color: #38BDF8 !important;
    font-weight: 600 !important;
}

html.light .chat-bubble-bot strong,
[data-theme="light"] .chat-bubble-bot strong {
    color: #0284C7 !important;
}

.chat-bubble-bot a {
    color: #38BDF8 !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    transition: color 0.15s ease !important;
}

.chat-bubble-bot a:hover {
    color: #7DD3FC !important;
}

html.light .chat-bubble-bot a,
[data-theme="light"] .chat-bubble-bot a {
    color: #0284C7 !important;
}

/* 5. Typing Indicator Animation */
#typing-indicator {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 10px 14px !important;
    border-radius: 16px 16px 16px 4px !important;
    width: fit-content !important;
    margin-right: auto !important;
}

.chat-typing-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #29B6F6 !important;
    animation: typingBounce 1.4s infinite ease-in-out both !important;
}

.chat-typing-dot:nth-child(1) { animation-delay: -0.32s !important; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s !important; }
.chat-typing-dot:nth-child(3) { animation-delay: 0s !important; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.65);
        opacity: 0.35;
    }
    40% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Realtime Streaming Cursor */
.chat-typing-cursor {
    display: inline-block !important;
    color: #29B6F6 !important;
    font-weight: 700 !important;
    margin-left: 2px !important;
    animation: cursorBlink 0.8s infinite !important;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 6. Suggested Question Chips (Pills) */
#chat-body .d-flex.flex-wrap,
.chat-quick-chips-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    max-width: 96% !important;
    align-self: flex-start !important;
}

.chat-quick-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 13px !important;
    border-radius: 9999px !important;
    background: rgba(41, 182, 246, 0.08) !important;
    border: 1px solid rgba(41, 182, 246, 0.28) !important;
    color: #38BDF8 !important;
    font-size: 0.77rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.chat-quick-btn:hover {
    background: rgba(41, 182, 246, 0.22) !important;
    border-color: #29B6F6 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(41, 182, 246, 0.25) !important;
}

.chat-quick-btn:active {
    transform: scale(0.97) !important;
}

html.light .chat-quick-btn,
[data-theme="light"] .chat-quick-btn {
    background: rgba(14, 165, 233, 0.07) !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
    color: #0284C7 !important;
}

html.light .chat-quick-btn:hover,
[data-theme="light"] .chat-quick-btn:hover {
    background: rgba(14, 165, 233, 0.16) !important;
    border-color: #0284C7 !important;
    color: #0369A1 !important;
}

/* 6b. Interactive Interview CTA Buttons in Chat */
.chat-cta-interview-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 8px 0 4px 0 !important;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.22), rgba(14, 165, 233, 0.32)) !important;
    border: 1px solid rgba(41, 182, 246, 0.55) !important;
    border-radius: 12px !important;
    color: #38BDF8 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(41, 182, 246, 0.2) !important;
    cursor: pointer !important;
}

.chat-cta-interview-btn:hover {
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.42), rgba(14, 165, 233, 0.52)) !important;
    border-color: #00F2FE !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35) !important;
}

.chat-cta-interview-btn:active {
    transform: scale(0.97) !important;
}

html.light .chat-cta-interview-btn,
[data-theme="light"] .chat-cta-interview-btn {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(2, 132, 199, 0.22)) !important;
    border-color: rgba(14, 165, 233, 0.45) !important;
    color: #0284C7 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15) !important;
}

html.light .chat-cta-interview-btn:hover,
[data-theme="light"] .chat-cta-interview-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(2, 132, 199, 0.34)) !important;
    border-color: #0284C7 !important;
    color: #0F172A !important;
}

.chat-bot-h3 {
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #38BDF8 !important;
}

html.light .chat-bot-h3,
[data-theme="light"] .chat-bot-h3 {
    color: #0284C7 !important;
}

.chat-divider {
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin: 8px 0 !important;
}

html.light .chat-divider,
[data-theme="light"] .chat-divider {
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.chat-bot-link {
    color: #38BDF8 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

html.light .chat-bot-link,
[data-theme="light"] .chat-bot-link {
    color: #0284C7 !important;
}

/* 7. Modern Chat Input Bar (Single Floating Search Bar - No Outer Rectangle) */
#consultant-chat-window .chat-input-bar,
#consultant-chat-window > div:last-child {
    padding: 8px 14px 16px !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}

html.light #consultant-chat-window .chat-input-bar,
html.light #consultant-chat-window > div:last-child,
[data-theme="light"] #consultant-chat-window .chat-input-bar,
[data-theme="light"] #consultant-chat-window > div:last-child {
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

.chat-input-subnote {
    font-size: 0.68rem !important;
    color: #64748B !important;
    text-align: center !important;
    margin-top: 6px !important;
    letter-spacing: 0.2px !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
html.light .chat-input-subnote,
[data-theme="light"] .chat-input-subnote {
    color: #94A3B8 !important;
}

/* The Main Search Bar Capsule (The only visible element at bottom) */
#consultant-chat-window .input-group,
.chat-input-capsule {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: rgba(20, 30, 52, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 9999px !important;
    padding: 4px 6px 4px 16px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 16px rgba(41, 182, 246, 0.1) !important;
}

#consultant-chat-window .input-group:focus-within,
.chat-input-capsule:focus-within {
    border-color: #29B6F6 !important;
    background: rgba(25, 38, 66, 0.96) !important;
    box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.28), 0 10px 30px rgba(0, 0, 0, 0.55) !important;
    transform: translateY(-1px) !important;
}

html.light #consultant-chat-window .input-group,
html.light .chat-input-capsule,
[data-theme="light"] #consultant-chat-window .input-group,
[data-theme="light"] .chat-input-capsule {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1), 0 0 12px rgba(14, 165, 233, 0.08) !important;
}

html.light #consultant-chat-window .input-group:focus-within,
html.light .chat-input-capsule:focus-within,
[data-theme="light"] #consultant-chat-window .input-group:focus-within,
[data-theme="light"] .chat-input-capsule:focus-within {
    border-color: #0284C7 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2), 0 10px 28px rgba(15, 23, 42, 0.14) !important;
    transform: translateY(-1px) !important;
}

/* Subtle Search Icon inside Capsule */
.chat-input-search-icon {
    color: #64748B !important;
    font-size: 0.84rem !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    transition: color 0.2s ease !important;
}

.chat-input-capsule:focus-within .chat-input-search-icon,
#consultant-chat-window .input-group:focus-within .chat-input-search-icon {
    color: #38BDF8 !important;
}

html.light .chat-input-search-icon,
[data-theme="light"] .chat-input-search-icon {
    color: #94A3B8 !important;
}

html.light .chat-input-capsule:focus-within .chat-input-search-icon,
[data-theme="light"] .chat-input-capsule:focus-within .chat-input-search-icon {
    color: #0284C7 !important;
}

/* Text Input Inside Capsule (Strictly Borderless, Zero Inner Rectangle) */
#chat-input,
#chat-input:focus,
#chat-input:active,
#chat-input:hover,
html.dark #chat-input,
html.dark #chat-input:focus,
html.light #chat-input,
html.light #chat-input:focus,
:root[data-theme="dark"] #chat-input,
:root[data-theme="dark"] #chat-input:focus,
:root[data-theme="light"] #chat-input,
:root[data-theme="light"] #chat-input:focus,
[data-theme="dark"] #chat-input,
[data-theme="dark"] #chat-input:focus,
[data-theme="light"] #chat-input,
[data-theme="light"] #chat-input:focus {
    flex-grow: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    color: #F8FAFC !important;
    font-size: 0.88rem !important;
    padding: 6px 8px !important;
    line-height: 1.4 !important;
}

#chat-input::placeholder {
    color: #64748B !important;
    font-size: 0.84rem !important;
}

html.light #chat-input,
html.light #chat-input:focus,
:root[data-theme="light"] #chat-input,
:root[data-theme="light"] #chat-input:focus,
[data-theme="light"] #chat-input,
[data-theme="light"] #chat-input:focus {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

html.light #chat-input::placeholder,
:root[data-theme="light"] #chat-input::placeholder,
[data-theme="light"] #chat-input::placeholder {
    color: #94A3B8 !important;
    -webkit-text-fill-color: #94A3B8 !important;
}

/* Send Button Inside Capsule */
#send-chat-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #007BA7 0%, #0093C7 50%, #FF2D95 100%) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(41, 182, 246, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
}

#send-chat-btn i {
    font-size: 0.88rem !important;
    transform: translate(1px, -0.5px);
}

#send-chat-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 16px rgba(0, 123, 167, 0.75), 0 0 10px rgba(255, 45, 149, 0.5) !important;
    filter: brightness(1.08) !important;
}

#send-chat-btn:active {
    transform: scale(0.92) !important;
}

/* 8. Bubble Entrance Keyframes */
@keyframes userBubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes botBubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 9. Mobile Responsiveness */
@media (max-width: 767.98px) {
    #consultant-chat-window {
        bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
        right: max(12px, env(safe-area-inset-right, 0px)) !important;
        left: max(12px, env(safe-area-inset-left, 0px)) !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        height: calc(100vh - 75px) !important;
        height: calc(100dvh - 75px) !important;
        max-height: 580px !important;
        border-radius: 20px !important;
    }

    #chat-input {
        font-size: 16px !important; /* Prevent iOS zoom */
    }

    .chat-bubble-user {
        max-width: 86% !important;
    }

    .chat-bubble-bot {
        max-width: 92% !important;
    }
}
