/* AI Chatbot Frontend Styles - v1.0.1 */
#ai-chatbot-container {
    position: fixed;
    bottom: var(--chat-icon-position-bottom, 20px);
    right: var(--chat-icon-position-right, 20px);
    z-index: var(--icon-z-index, 1000);
    font-family: var(--font-family, 'Arial, sans-serif');
    font-size: var(--font-size, 14px);
}

/* Chat Icon */
.ai-chatbot-icon {
    position: fixed;
    bottom: var(--chat-icon-position-bottom, 20px);
    right: var(--chat-icon-position-right, 20px);
    width: var(--chat-icon-size, 60px);
    height: var(--chat-icon-size, 60px);
    background-color: var(--icon-background-color, #2196F3);
    border-radius: 50% !important; /* Always make it circular */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transition: all var(--animation-duration, 0.3s) var(--transition-timing, ease);
    z-index: var(--icon-z-index, 1000);
    border: none;
    outline: none;
    overflow: hidden;
    text-align: center;
}

.ai-chatbot-icon:hover {
    background-color: var(--icon-hover-color, #1976D2);
    transform: scale(var(--hover-scale, 1.05));
    box-shadow: none !important;
}

/* PNG Icon handling with perfect centering */
.ai-chatbot-icon.has-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chatbot-icon.has-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-chatbot-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--icon-color, #ffffff);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ai-chatbot-icon img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Chat Window */
.ai-chatbot-window {
    position: fixed;
    width: var(--chat-width, 350px);
    height: var(--chat-height, 500px);
    background: var(--window-background-color, #ffffff);
    border-radius: var(--window-border-radius, 12px);
    border: 1px solid var(--window-border-color, #e0e0e0);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: var(--window-z-index, 1000000);
}

/* Header */
.ai-chatbot-header {
    background-color: var(--header-color, #2196F3);
    color: var(--header-text-color, #ffffff);
    padding: var(--header-padding, 16px);
    height: var(--header-height, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--window-border-radius, 12px) var(--window-border-radius, 12px) 0 0;
    position: relative;
    font-family: var(--font-family, 'Arial, sans-serif');
    font-size: var(--header-font-size, 16px);
    box-sizing: border-box;
}

.ai-chatbot-header h3 {
    margin: 0;
    font-size: var(--header-font-size, 16px);
    font-weight: 600;
    color: var(--header-text-color, #ffffff);
}

.ai-chatbot-avatar {
    width: var(--avatar-size, 32px);
    height: var(--avatar-size, 32px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--avatar-border-radius, 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.ai-chatbot-avatar.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ai-chatbot-avatar svg {
    position: relative;
    z-index: 2;
    color: var(--header-text-color, #ffffff);
}

.ai-chatbot-name {
    font-weight: 600;
    font-size: var(--header-font-size, 16px);
    margin-right: 12px;
    color: var(--header-text-color, #ffffff);
}

.ai-chatbot-status {
    display: flex;
    align-items: center;
    font-size: calc(var(--header-font-size, 16px) * 0.75);
    opacity: 0.9;
    color: var(--header-text-color, #ffffff);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.ai-chatbot-close {
    background: none;
    border: none;
    color: var(--close-button-color, #ffffff);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--animation-duration, 0.3s) var(--transition-timing, ease);
}

.ai-chatbot-close:hover {
    color: var(--close-button-hover-color, #ff5252);
}

/* Messages Container */
.ai-chatbot-messages {
    flex: 1;
    padding: var(--message-area-padding, 20px);
    overflow-y: auto;
    max-height: calc(var(--chat-height, 500px) - var(--header-height, 70px) - var(--input-area-height, 80px));
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-bar-color, #cccccc) transparent;
    background-color: var(--message-background-color, #fafafa) !important;
}

.ai-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--scroll-bar-color, #cccccc);
    border-radius: 3px;
}

.ai-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-bar-hover-color, #999999);
}

/* Welcome Message */
.ai-chatbot-welcome {
    margin-bottom: var(--message-spacing, 15px);
}

/* Messages - Proper Chat Conversation Layout */
.ai-chatbot-message {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 0 8px;
    clear: both;
}

.ai-chatbot-ai-message {
    justify-content: flex-start; /* AI on left */
    flex-direction: row;
}

.ai-chatbot-user-message {
    justify-content: flex-end; /* User on right */
    flex-direction: row-reverse; /* Avatar on right side */
}

.ai-chatbot-user-message .ai-chatbot-text-avatar,
.ai-chatbot-user-message .ai-chatbot-avatar {
    margin-right: 0;
    margin-left: 6px;
}

.ai-chatbot-ai-message .ai-chatbot-text-avatar,
.ai-chatbot-ai-message .ai-chatbot-avatar {
    margin-right: 6px;
    margin-left: 0;
}

/* Avatar Styling */
.ai-chatbot-avatar {
    width: var(--avatar-size, 32px);
    height: var(--avatar-size, 32px);
    border-radius: var(--avatar-border-radius, 50%);
    margin-right: 8px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-background-color, #f0f0f0);
}

.ai-chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--avatar-border-radius, 50%);
}

.ai-chatbot-avatar svg {
    width: 70%;
    height: 70%;
    fill: var(--icon-color, #666666);
}

.ai-chatbot-initials-avatar {
    font-family: var(--font-family, 'Arial, sans-serif');
    font-size: calc(var(--avatar-size, 32px) * 0.4) !important;
    font-weight: bold !important;
    text-transform: uppercase;
    line-height: 1 !important;
}

/* Fallback Text Avatars */
.ai-chatbot-text-avatar {
    width: var(--avatar-size, 32px);
    height: var(--avatar-size, 32px);
    border-radius: var(--avatar-border-radius, 50%);
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    color: white;
}

.ai-chatbot-text-avatar.ai-avatar {
    background-color: var(--ai-bubble-color, #f1f1f1);
    color: var(--ai-text-color, #333333);
    border: 1px solid var(--ai-text-color, #333333);
}

.ai-chatbot-text-avatar.user-avatar {
    background-color: var(--user-bubble-color, #2196F3);
    color: var(--user-text-color, #ffffff);
}

.ai-chatbot-message-content {
    max-width: var(--message-max-width, 80%);
}

.ai-chatbot-bubble {
    padding: var(--bubble-padding-vertical, 12px) var(--bubble-padding-horizontal, 16px);
    font-size: var(--font-size, 16px) !important;
    border-radius: var(--message-border-radius, 18px);
    margin-bottom: calc(var(--message-spacing, 15px) / 3);
    word-wrap: break-word;
    font-family: var(--font-family, 'Arial, sans-serif');
    font-size: var(--font-size, 14px);
    line-height: var(--line-height, 1.4);
    letter-spacing: var(--letter-spacing, 0px);
    border: var(--message-border-width, 1px) solid transparent;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    display: inline-block !important;
}

.ai-chatbot-user-bubble,
.ai-chatbot-user-bubble *,
.ai-chatbot-user-bubble p,
.ai-chatbot-user-bubble div,
.ai-chatbot-user-bubble span {
    font-size: var(--font-size, 14px) !important;
    font-family: var(--font-family, 'Arial, sans-serif') !important;
    line-height: var(--line-height, 1.4) !important;
}

.ai-chatbot-user-bubble {
    background-color: var(--user-bubble-color, #2196F3);
    color: var(--user-text-color, #ffffff);
    border-bottom-right-radius: 6px;
}

.ai-chatbot-ai-bubble {
    border-bottom-left-radius: 6px;
}

.ai-chatbot-ai-bubble *,
.ai-chatbot-ai-bubble p,
.ai-chatbot-ai-bubble div,
.ai-chatbot-ai-bubble span {
    font-size: var(--font-size, 14px) !important;
    font-family: var(--font-family, 'Arial, sans-serif') !important;
    line-height: var(--line-height, 1.4) !important;
}

.ai-chatbot-ai-bubble {
    background-color: var(--ai-bubble-color, #ffffff);
    color: var(--ai-text-color, #333333);
    border: var(--message-border-width, 1px) solid #e0e0e0;
    border-bottom-left-radius: 6px;
    font-size: var(--font-size, 14px) !important;
    font-family: var(--font-family, 'Arial, sans-serif') !important;
    line-height: var(--line-height, 1.4) !important;
}

/* Message Container with Timestamp */
.ai-chatbot-message-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: 0;
}

.ai-chatbot-timestamp {
    font-size: var(--timestamp-font-size, 11px);
    color: var(--timestamp-color, #999999);
    margin-top: 4px;
    display: block;
    text-align: left;
}

.ai-chatbot-user-message .ai-chatbot-timestamp {
    text-align: right;
}

/* Reasoning Section */
.ai-chatbot-reasoning-section {
    margin-top: 8px;
    padding: 0;
}

.ai-chatbot-show-thinking {
    background: var(--ai-bubble-color, #ffffff);
    border: 1px solid var(--input-border-color, #dddddd);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--ai-text-color, #333333);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-left: 0;
}

.ai-chatbot-show-thinking:hover {
    background: var(--header-color, #2196F3);
    color: white;
    border-color: var(--header-color, #2196F3);
}

.ai-chatbot-show-thinking svg {
    width: 16px;
    height: 16px;
}

.ai-chatbot-reasoning-content {
    margin-top: 8px;
    padding: 12px;
    background: var(--message-background-color, #fafafa);
    border: 1px solid var(--input-border-color, #dddddd);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.ai-chatbot-reasoning-content .reasoning-header {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--header-color, #2196F3);
}

.ai-chatbot-reasoning-content .reasoning-text {
    color: var(--ai-text-color, #333333);
    white-space: pre-wrap;
    font-family: monospace;
    background: var(--window-background-color, #ffffff);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--input-border-color, #dddddd);
    max-height: 200px;
    overflow-y: auto;
}

/* Typing Indicator */
.ai-chatbot-typing {
    padding: 10px;
    display: flex;
    align-items: center;
    background: transparent;
    margin-left: 10px;
    margin-bottom: 15px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-right: 10px;
    background-color: var(--ai-bubble-color, #ffffff);
    border: 1px solid var(--input-border-color, #dddddd);
    border-radius: var(--message-border-radius, 18px);
    padding: 8px 12px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: var(--ai-bubble-color, #ffffff);
    border: 1px solid var(--ai-text-color, #333333);
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    font-size: calc(var(--font-size, 14px) * 0.857);
    color: inherit;
    display: inline-block;
    min-height: 1em;
}

/* Thinking Indicator */
.ai-chatbot-thinking {
    padding: 10px var(--message-area-padding, 20px);
    display: flex;
    align-items: center;
    background: #f0f4ff;
    border-top: 1px solid #d1e7dd;
}

.thinking-indicator {
    margin-right: 10px;
}

.thinking-animation {
    display: flex;
    align-items: center;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background: var(--typing-indicator-color, #2196F3);
    border-radius: 50%;
    margin-right: 4px;
    animation: thinking 2s infinite ease-in-out;
}

.thinking-dot:nth-child(1) {
    animation-delay: -0.4s;
}

.thinking-dot:nth-child(2) {
    animation-delay: -0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes thinking {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }
    20% {
        transform: scaleY(1.0);
        opacity: 1;
    }
}

.thinking-text {
    font-size: calc(var(--font-size, 14px) * 0.857);
    color: var(--typing-indicator-color, #2196F3);
    font-style: italic;
    font-weight: 500;
}

/* Input Area */
.ai-chatbot-input-container {
    border-top: 1px solid var(--window-border-color, #e9ecef);
    background: var(--input-background-color, #ffffff);
    position: relative;
    z-index: 10;
    height: var(--input-area-height, 80px);
    box-sizing: border-box;
}

.ai-chatbot-input-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: var(--input-padding, 12px);
    gap: 8px;
}

.ai-chatbot-input {
    flex: 1;
    border: var(--input-border-width, 1px) solid var(--input-border-color, #dddddd);
    border-radius: var(--input-border-radius, 20px);
    padding: var(--input-padding, 12px) calc(var(--input-padding, 12px) + 4px);
    font-size: var(--input-font-size, 14px);
    font-family: var(--font-family, 'Arial, sans-serif');
    resize: none;
    outline: none;
    max-height: 120px;
    min-height: var(--input-height, 44px);
    line-height: var(--line-height, 1.4);
    transition: border-color var(--animation-duration, 0.3s) var(--transition-timing, ease);
    background: var(--input-background-color, #ffffff);
    color: var(--input-text-color, #333333);
    letter-spacing: var(--letter-spacing, 0px);
    caret-color: var(--input-text-color, #333333);
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    cursor: text;
    text-shadow: none;
}

.ai-chatbot-input:focus {
    border-color: var(--input-focus-color, #2196F3);
    box-shadow: none !important;
    outline: none;
    text-shadow: none;
}

/* Fix for any selection issues */
.ai-chatbot-input::selection {
    background-color: rgba(33, 150, 243, 0.2);
    text-shadow: none;
}

.ai-chatbot-input::placeholder {
    color: var(--input-placeholder-color, #999999);
}

.ai-chatbot-send {
    background: var(--send-button-color, #2196F3);
    color: var(--header-text-color, #ffffff);
    border: none;
    border-radius: 8px;
    width: auto;
    height: var(--send-button-size, 40px);
    min-width: var(--send-button-size, 40px);
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--animation-duration, 0.3s) var(--transition-timing, ease);
    margin-left: 10px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.ai-chatbot-send:hover:not(:disabled) {
    background: var(--send-button-hover-color, #1976D2);
    transform: scale(var(--hover-scale, 1.05));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-chatbot-send:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-chatbot-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: white;
    pointer-events: none;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.ai-chatbot-send:disabled svg {
    color: #666666;
}

/* Ensure SVG icons are visible */
.ai-chatbot-send svg,
.ai-chatbot-icon svg,
.ai-chatbot-close svg,
.ai-chatbot-avatar svg {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Watermark */
.ai-chatbot-watermark {
    text-align: center;
    padding: 8px;
    background: var(--watermark-background-color, #f8f9fa);
    border-top: 1px solid var(--window-border-color, #e9ecef);
    color: var(--watermark-color, #666666);
    font-size: var(--watermark-font-size, 11px);
    font-family: var(--font-family, 'Arial, sans-serif');
}

/* Shadow Effects */
.ai-chatbot-window.has-shadow {
    box-shadow: 0 calc(var(--window-shadow-blur, 30px) * 1.4) calc(var(--window-shadow-spread, 0px) * 1.4) rgba(0, 0, 0, calc(var(--window-shadow-opacity, 0.12) * 1.25));
}

.ai-chatbot-icon.has-shadow {
    box-shadow: 0 calc(var(--icon-shadow-blur, 20px) * 1.5) calc(var(--icon-shadow-spread, 0px) * 1.5) rgba(0, 0, 0, calc(var(--icon-shadow-opacity, 0.15) * 1.33));
}

.message-content.has-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ai-chatbot-container {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
    
    .ai-chatbot-window {
        position: fixed;
        bottom: calc(var(--mobile-icon-size, 55px) + 15px);
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
    
    .ai-chatbot-icon {
        position: fixed;
        bottom: 15px;
        right: 15px;
        width: var(--mobile-icon-size, 55px);
        height: var(--mobile-icon-size, 55px);
    }
    
    .ai-chatbot-header {
        padding: calc(var(--header-padding, 16px) * 0.75);
        height: var(--mobile-header-height, 60px);
    }
    
    .ai-chatbot-messages {
        padding: calc(var(--message-area-padding, 20px) * 0.75);
        max-height: calc(100vh - var(--mobile-header-height, 60px) - var(--input-area-height, 80px) - 40px);
        background-color: var(--message-background-color, #fafafa) !important;
    }
    
    .message-content {
        max-width: 90%;
        font-size: var(--mobile-font-size, 14px);
    }
    
    .ai-chatbot-input-wrapper {
        padding: calc(var(--input-padding, 12px) * 0.833);
    }
    
    .ai-chatbot-input {
        font-size: var(--mobile-input-font-size, 16px); /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .ai-chatbot-window {
        height: calc(100vh - var(--mobile-icon-size, 55px) - 30px);
    }
    
    .ai-chatbot-messages {
        max-height: calc(100vh - var(--mobile-header-height, 60px) - var(--input-area-height, 80px) - 60px);
        background-color: var(--message-background-color, #fafafa) !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ai-chatbot-window {
        background: var(--window-background-color, #1e1e1e);
        border: var(--window-border-width, 1px) solid var(--window-border-color, #333);
    }
    
    .ai-chatbot-messages {
        background-color: var(--message-background-color, #2a2a2a) !important;
    }
    
    .ai-message .message-content {
        background: #333;
        color: #fff;
        border-color: #444;
    }
    
    .ai-chatbot-input {
        background: var(--input-background-color, #333);
        color: var(--input-text-color, #fff);
        border-color: var(--input-border-color, #555);
    }
    
    .ai-chatbot-input::placeholder {
        color: var(--input-placeholder-color, #aaa);
    }
    
    .ai-chatbot-typing,
    .ai-chatbot-thinking {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .ai-chatbot-input-container {
        background: var(--input-background-color, #1e1e1e);
        border-color: var(--window-border-color, #333);
    }
}

/* Focus and accessibility */
.ai-chatbot-icon:focus,
.ai-chatbot-send:focus,
.ai-chatbot-close:focus,
.ai-chatbot-input:focus {
    outline: 2px solid var(--input-focus-color, #2196F3);
    outline-offset: 2px;
}

/* AI Reasoning Styles */
.ai-chatbot-reasoning {
    font-size: 0.9em;
    line-height: 1.4;
}

.ai-chatbot-reasoning-bubble {
    border-left: 3px solid var(--header-color, #2196F3) !important;
    padding-left: 12px !important;
}

.reasoning-header {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--header-color, #2196F3);
}

.reasoning-content {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: rgba(0,0,0,0.03);
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Avatar Styles */
.ai-chatbot-avatar {
    width: var(--avatar-size, 32px);
    height: var(--avatar-size, 32px);
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
}

.ai-chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-chatbot-user-avatar {
    background-color: var(--user-bubble-color, #2196F3);
}

.ai-chatbot-ai-avatar {
    background-color: var(--header-color, #2196F3);
}

.ai-chatbot-avatar svg {
    width: 60%;
    height: 60%;
    fill: #ffffff;
}

.ai-chatbot-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--message-spacing, 15px);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .ai-chatbot-window {
        border: 2px solid #000;
    }
    
    .message-content {
        border: 1px solid #000;
    }
    
    .ai-chatbot-input {
        border: 2px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ai-chatbot-icon,
    .ai-chatbot-send,
    .typing-indicator span,
    .thinking-dot,
    .status-indicator,
    .user-message,
    .ai-message {
        animation: none !important;
        transition: none !important;
    }
    
    .ai-chatbot-icon:hover,
    .ai-chatbot-send:enabled:hover {
        transform: none !important;
    }
}

.reasoning-toggle {
    cursor: pointer;
    font-size: 12px;
    color: #666;
    text-decoration: underline;
}
.reasoning-text {
    font-size: 12px;
    color: #555;
}

/* Add slide-in animation for new chat messages */
@keyframes slideInMessage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New class to trigger the slide-in animation */
.chat-message-new {
    animation: slideInMessage 0.5s ease-out;
}

/* Refine the chat container for a neater layout */
.chat-container {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
} 