/**
 * AI Chatbot - Frontend Styles
 * Modern, beautiful chat widget
 * Bulletproof CSS with high specificity to prevent theme conflicts
 */

/* Reset and Isolation - Prevent theme interference */
#ai-chatbot-widget,
#ai-chatbot-widget *,
#ai-chatbot-widget *::before,
#ai-chatbot-widget *::after {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    background: transparent !important;
    float: none !important;
    clear: none !important;
    vertical-align: baseline !important;
}

/* CSS Variables */
#ai-chatbot-widget.ai-chatbot-widget {
    --ai-chatbot-primary: #6366f1;
    --ai-chatbot-secondary: #8b5cf6;
    --ai-chatbot-bg: #ffffff;
    --ai-chatbot-bg-secondary: #f8fafc;
    --ai-chatbot-text: #1e293b;
    --ai-chatbot-text-secondary: #64748b;
    --ai-chatbot-text-muted: #94a3b8;
    --ai-chatbot-border: #e2e8f0;
    --ai-chatbot-user-bg: var(--ai-chatbot-primary);
    --ai-chatbot-user-text: #ffffff;
    --ai-chatbot-bot-bg: #f1f5f9;
    --ai-chatbot-bot-text: #334155;
    --ai-chatbot-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --ai-chatbot-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ai-chatbot-radius: 20px;
    --ai-chatbot-radius-sm: 12px;
    --ai-chatbot-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ai-chatbot-button-size: 60px;
    
    font-family: var(--ai-chatbot-font) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: var(--ai-chatbot-text) !important;
    text-align: left !important;
}

/* Button Size Variants */
#ai-chatbot-widget.ai-chatbot-widget[data-size="small"] {
    --ai-chatbot-button-size: 50px;
}

#ai-chatbot-widget.ai-chatbot-widget[data-size="large"] {
    --ai-chatbot-button-size: 70px;
}

/* Widget Container */
#ai-chatbot-widget.ai-chatbot-widget {
    position: fixed !important;
    bottom: 24px !important;
    z-index: 2147483647 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

#ai-chatbot-widget.ai-chatbot-widget.ai-chatbot-bottom-right {
    right: 24px !important;
    left: auto !important;
}

#ai-chatbot-widget.ai-chatbot-widget.ai-chatbot-bottom-left {
    left: 24px !important;
    right: auto !important;
}

/* Toggle Button */
#ai-chatbot-widget .ai-chatbot-toggle {
    width: var(--ai-chatbot-button-size) !important;
    height: var(--ai-chatbot-button-size) !important;
    min-width: var(--ai-chatbot-button-size) !important;
    min-height: var(--ai-chatbot-button-size) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--ai-chatbot-primary), var(--ai-chatbot-secondary)) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--ai-chatbot-shadow-sm), 0 0 0 0 rgba(99, 102, 241, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

#ai-chatbot-widget .ai-chatbot-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent) !important;
    border-radius: 50% !important;
}

#ai-chatbot-widget .ai-chatbot-toggle:hover {
    transform: scale(1.08) !important;
    box-shadow: var(--ai-chatbot-shadow), 0 0 0 8px rgba(99, 102, 241, 0.15) !important;
}

#ai-chatbot-widget .ai-chatbot-toggle:active {
    transform: scale(0.95) !important;
}

#ai-chatbot-widget .ai-chatbot-toggle svg {
    transition: all 0.3s ease !important;
    width: 28px !important;
    height: 28px !important;
    fill: currentColor !important;
    stroke: none !important;
}

#ai-chatbot-widget .ai-chatbot-toggle .ai-chatbot-icon-close {
    display: none !important;
    transform: rotate(-90deg) !important;
}

#ai-chatbot-widget.ai-chatbot-open .ai-chatbot-toggle .ai-chatbot-icon-chat {
    display: none !important;
}

#ai-chatbot-widget.ai-chatbot-open .ai-chatbot-toggle .ai-chatbot-icon-close {
    display: block !important;
    transform: rotate(0deg) !important;
}

/* Pulse Animation for Toggle */
#ai-chatbot-widget .ai-chatbot-toggle::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--ai-chatbot-primary), var(--ai-chatbot-secondary)) !important;
    animation: ai-chatbot-pulse 2s infinite !important;
    z-index: -1 !important;
}

@keyframes ai-chatbot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

#ai-chatbot-widget.ai-chatbot-open .ai-chatbot-toggle::after {
    animation: none !important;
}

/* Chat Window */
#ai-chatbot-widget .ai-chatbot-window {
    position: absolute !important;
    bottom: calc(var(--ai-chatbot-button-size) + 16px) !important;
    width: 400px !important;
    max-width: calc(100vw - 48px) !important;
    height: 600px !important;
    max-height: calc(100vh - 140px) !important;
    min-width: 300px !important;
    min-height: 400px !important;
    background: var(--ai-chatbot-bg) !important;
    border-radius: var(--ai-chatbot-radius) !important;
    box-shadow: var(--ai-chatbot-shadow) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.95) !important;
    transform-origin: bottom right !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--ai-chatbot-border) !important;
}

#ai-chatbot-widget.ai-chatbot-bottom-right .ai-chatbot-window {
    right: 0 !important;
    left: auto !important;
    transform-origin: bottom right !important;
}

#ai-chatbot-widget.ai-chatbot-bottom-left .ai-chatbot-window {
    left: 0 !important;
    right: auto !important;
    transform-origin: bottom left !important;
}

#ai-chatbot-widget.ai-chatbot-open .ai-chatbot-window {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Header */
#ai-chatbot-widget .ai-chatbot-header {
    background: linear-gradient(135deg, var(--ai-chatbot-primary), var(--ai-chatbot-secondary)) !important;
    color: white !important;
    padding: 20px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 80px !important;
}

#ai-chatbot-widget .ai-chatbot-header::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 100% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%) !important;
}

#ai-chatbot-widget .ai-chatbot-header-info {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    position: relative !important;
    z-index: 1 !important;
}

#ai-chatbot-widget .ai-chatbot-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

#ai-chatbot-widget .ai-chatbot-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

#ai-chatbot-widget .ai-chatbot-avatar svg {
    width: 26px !important;
    height: 26px !important;
    opacity: 0.9 !important;
    fill: currentColor !important;
}

#ai-chatbot-widget .ai-chatbot-header-text {
    display: block !important;
}

#ai-chatbot-widget .ai-chatbot-header-text h4 {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: white !important;
    line-height: 1.3 !important;
}

#ai-chatbot-widget .ai-chatbot-status-text {
    font-size: 13px !important;
    opacity: 0.85 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: white !important;
    line-height: 1.3 !important;
}

#ai-chatbot-widget .ai-chatbot-status-text::before {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    background: #4ade80 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6) !important;
}

#ai-chatbot-widget .ai-chatbot-minimize {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    transition: all 0.2s !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 0 !important;
}

#ai-chatbot-widget .ai-chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
}

#ai-chatbot-widget .ai-chatbot-minimize svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

/* Messages Container */
#ai-chatbot-widget .ai-chatbot-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    background: var(--ai-chatbot-bg-secondary) !important;
    scroll-behavior: smooth !important;
    min-height: 200px !important;
}

/* Message Bubbles */
#ai-chatbot-widget .ai-chatbot-message {
    display: flex !important;
    flex-direction: column !important;
    max-width: 85% !important;
    width: auto !important;
    animation: ai-chatbot-message-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes ai-chatbot-message-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#ai-chatbot-widget .ai-chatbot-message-user {
    align-self: flex-end !important;
}

#ai-chatbot-widget .ai-chatbot-message-bot {
    align-self: flex-start !important;
}

#ai-chatbot-widget .ai-chatbot-message-content {
    padding: 14px 18px !important;
    border-radius: 20px !important;
    word-wrap: break-word !important;
    white-space: pre-wrap !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    position: relative !important;
}

#ai-chatbot-widget .ai-chatbot-message-content a {
    color: inherit !important;
    text-decoration: underline !important;
}

#ai-chatbot-widget .ai-chatbot-message-content code {
    background: rgba(0, 0, 0, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 13px !important;
}

#ai-chatbot-widget .ai-chatbot-message-user .ai-chatbot-message-content {
    background: linear-gradient(135deg, var(--ai-chatbot-primary), var(--ai-chatbot-secondary)) !important;
    color: var(--ai-chatbot-user-text) !important;
    border-bottom-right-radius: 6px !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3) !important;
}

#ai-chatbot-widget .ai-chatbot-message-bot .ai-chatbot-message-content {
    background: var(--ai-chatbot-bg) !important;
    color: var(--ai-chatbot-bot-text) !important;
    border-bottom-left-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--ai-chatbot-border) !important;
}

#ai-chatbot-widget .ai-chatbot-message-time {
    font-size: 11px !important;
    color: var(--ai-chatbot-text-muted) !important;
    margin-top: 6px !important;
    padding: 0 4px !important;
    line-height: 1.3 !important;
}

#ai-chatbot-widget .ai-chatbot-message-user .ai-chatbot-message-time {
    text-align: right !important;
}

/* Typing Indicator */
#ai-chatbot-widget .ai-chatbot-typing {
    padding: 0 24px 16px !important;
    display: none !important;
}

#ai-chatbot-widget .ai-chatbot-typing.visible {
    display: block !important;
}

#ai-chatbot-widget .ai-chatbot-typing-indicator {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 14px 20px !important;
    background: var(--ai-chatbot-bg) !important;
    border-radius: 20px !important;
    border-bottom-left-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--ai-chatbot-border) !important;
}

#ai-chatbot-widget .ai-chatbot-typing-indicator span {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    background: var(--ai-chatbot-primary) !important;
    border-radius: 50% !important;
    animation: ai-chatbot-typing 1.4s infinite ease-in-out both !important;
    display: block !important;
}

#ai-chatbot-widget .ai-chatbot-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s !important;
}

#ai-chatbot-widget .ai-chatbot-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s !important;
}

@keyframes ai-chatbot-typing {
    0%, 80%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input Container */
#ai-chatbot-widget .ai-chatbot-input-container {
    padding: 20px 24px !important;
    background: var(--ai-chatbot-bg) !important;
    border-top: 1px solid var(--ai-chatbot-border) !important;
    flex-shrink: 0 !important;
}

#ai-chatbot-widget .ai-chatbot-form {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-end !important;
    background: var(--ai-chatbot-bg-secondary) !important;
    border: 1px solid var(--ai-chatbot-border) !important;
    border-radius: 16px !important;
    padding: 6px 6px 6px 18px !important;
    transition: all 0.2s !important;
}

#ai-chatbot-widget .ai-chatbot-form:focus-within {
    border-color: var(--ai-chatbot-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

#ai-chatbot-widget .ai-chatbot-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    resize: none !important;
    max-height: 100px !important;
    min-height: 20px !important;
    outline: none !important;
    color: var(--ai-chatbot-text) !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

#ai-chatbot-widget .ai-chatbot-input::placeholder {
    color: var(--ai-chatbot-text-muted) !important;
    opacity: 1 !important;
}

#ai-chatbot-widget .ai-chatbot-send {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--ai-chatbot-primary), var(--ai-chatbot-secondary)) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

#ai-chatbot-widget .ai-chatbot-send:hover:not(:disabled) {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

#ai-chatbot-widget .ai-chatbot-send:active:not(:disabled) {
    transform: scale(0.95) !important;
}

#ai-chatbot-widget .ai-chatbot-send:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

#ai-chatbot-widget .ai-chatbot-send svg {
    width: 20px !important;
    height: 20px !important;
    transform: translateX(1px) !important;
    fill: currentColor !important;
}

#ai-chatbot-widget .ai-chatbot-powered {
    text-align: center !important;
    font-size: 11px !important;
    color: var(--ai-chatbot-text-muted) !important;
    margin-top: 12px !important;
    display: block !important;
}

#ai-chatbot-widget .ai-chatbot-powered[data-hidden="true"] {
    display: none !important;
}

/* Error Message */
#ai-chatbot-widget .ai-chatbot-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    color: #dc2626 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    margin: 0 0 12px 0 !important;
    border: 1px solid #fecaca !important;
    animation: ai-chatbot-shake 0.4s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#ai-chatbot-widget .ai-chatbot-error svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
}

@keyframes ai-chatbot-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Scrollbar */
#ai-chatbot-widget .ai-chatbot-messages::-webkit-scrollbar {
    width: 6px !important;
}

#ai-chatbot-widget .ai-chatbot-messages::-webkit-scrollbar-track {
    background: transparent !important;
}

#ai-chatbot-widget .ai-chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--ai-chatbot-border) !important;
    border-radius: 3px !important;
}

#ai-chatbot-widget .ai-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--ai-chatbot-text-muted) !important;
}

/* Theme Variants */

/* Minimal Theme */
#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-header {
    background: var(--ai-chatbot-bg) !important;
    color: var(--ai-chatbot-text) !important;
    border-bottom: 1px solid var(--ai-chatbot-border) !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-header::before {
    display: none !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-header-text h4 {
    color: var(--ai-chatbot-text) !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-status-text {
    color: var(--ai-chatbot-text-secondary) !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-avatar {
    background: var(--ai-chatbot-bg-secondary) !important;
    border-color: var(--ai-chatbot-border) !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-avatar svg {
    color: var(--ai-chatbot-primary) !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-status-text::before {
    background: var(--ai-chatbot-primary) !important;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6) !important;
}

#ai-chatbot-widget[data-theme="minimal"] .ai-chatbot-minimize {
    background: var(--ai-chatbot-bg-secondary) !important;
    border-color: var(--ai-chatbot-border) !important;
    color: var(--ai-chatbot-text-secondary) !important;
}

/* Rounded Theme */
#ai-chatbot-widget[data-theme="rounded"] .ai-chatbot-window {
    border-radius: 28px !important;
}

#ai-chatbot-widget[data-theme="rounded"] .ai-chatbot-message-content {
    border-radius: 24px !important;
}

#ai-chatbot-widget[data-theme="rounded"] .ai-chatbot-message-user .ai-chatbot-message-content {
    border-bottom-right-radius: 8px !important;
}

#ai-chatbot-widget[data-theme="rounded"] .ai-chatbot-message-bot .ai-chatbot-message-content {
    border-bottom-left-radius: 8px !important;
}

#ai-chatbot-widget[data-theme="rounded"] .ai-chatbot-form {
    border-radius: 24px !important;
}

#ai-chatbot-widget[data-theme="rounded"] .ai-chatbot-send {
    border-radius: 50% !important;
}

/* Glassmorphism Theme */
#ai-chatbot-widget[data-theme="glassmorphism"] .ai-chatbot-window {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

#ai-chatbot-widget[data-theme="glassmorphism"] .ai-chatbot-messages {
    background: transparent !important;
}

#ai-chatbot-widget[data-theme="glassmorphism"] .ai-chatbot-message-bot .ai-chatbot-message-content {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

#ai-chatbot-widget[data-theme="glassmorphism"] .ai-chatbot-input-container {
    background: rgba(255, 255, 255, 0.5) !important;
}

#ai-chatbot-widget[data-theme="glassmorphism"] .ai-chatbot-form {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
    #ai-chatbot-widget.ai-chatbot-widget {
        bottom: 16px !important;
    }
    
    #ai-chatbot-widget.ai-chatbot-widget.ai-chatbot-bottom-right {
        right: 16px !important;
    }
    
    #ai-chatbot-widget.ai-chatbot-widget.ai-chatbot-bottom-left {
        left: 16px !important;
    }
    
    #ai-chatbot-widget .ai-chatbot-window {
        width: calc(100vw - 32px) !important;
        height: calc(100vh - 120px) !important;
        max-height: calc(100vh - 120px) !important;
        bottom: calc(var(--ai-chatbot-button-size) + 12px) !important;
        border-radius: 16px !important;
    }
    
    #ai-chatbot-widget .ai-chatbot-header {
        padding: 16px 20px !important;
    }
    
    #ai-chatbot-widget .ai-chatbot-avatar {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    #ai-chatbot-widget .ai-chatbot-messages {
        padding: 16px !important;
        gap: 16px !important;
    }
    
    #ai-chatbot-widget .ai-chatbot-input-container {
        padding: 16px !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #ai-chatbot-widget .ai-chatbot-toggle,
    #ai-chatbot-widget .ai-chatbot-window,
    #ai-chatbot-widget .ai-chatbot-message,
    #ai-chatbot-widget .ai-chatbot-send,
    #ai-chatbot-widget .ai-chatbot-minimize {
        transition: none !important;
    }
    
    #ai-chatbot-widget .ai-chatbot-toggle::after,
    #ai-chatbot-widget .ai-chatbot-typing-indicator span {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #ai-chatbot-widget[data-theme="auto"] {
        --ai-chatbot-bg: #1e293b;
        --ai-chatbot-bg-secondary: #0f172a;
        --ai-chatbot-text: #f1f5f9;
        --ai-chatbot-text-secondary: #94a3b8;
        --ai-chatbot-text-muted: #64748b;
        --ai-chatbot-border: #334155;
        --ai-chatbot-bot-bg: #334155;
        --ai-chatbot-bot-text: #f1f5f9;
    }
}

/* Print styles - hide chatbot */
@media print {
    #ai-chatbot-widget.ai-chatbot-widget {
        display: none !important;
    }
}
