/*
 * Chatbot ChatGPT for WordPress - Stylesheet
 * Modern design with floating avatar
 */

/* ===== THEME COLOR VARIABLES ===== */
:root {
    /* Default Theme: Orange (Wizepanel) */
    --chatbot-primary: #E5A22B;
    --chatbot-primary-dark: #C8891F;
    --chatbot-primary-rgb: 229, 162, 43;

    /* Secondary color (for contrast elements like buttons) */
    --chatbot-secondary: #e1701a;
    --chatbot-secondary-dark: #c45e14;
    --chatbot-secondary-rgb: 225, 112, 26;
}

/* Theme: Orange (Wizepanel) */
[data-chatbot-theme="orange"] {
    --chatbot-primary: #E5A22B;
    --chatbot-primary-dark: #C8891F;
    --chatbot-primary-rgb: 229, 162, 43;
    --chatbot-secondary: #e1701a;
    --chatbot-secondary-dark: #c45e14;
    --chatbot-secondary-rgb: 225, 112, 26;
}

/* Theme: Green (Classic) */
[data-chatbot-theme="green"] {
    --chatbot-primary: #85B439;
    --chatbot-primary-dark: #6a9230;
    --chatbot-primary-rgb: 133, 180, 57;
    --chatbot-secondary: #27ae60;
    --chatbot-secondary-dark: #1e8449;
    --chatbot-secondary-rgb: 39, 174, 96;
}

/* Theme: Blue (Professional) */
[data-chatbot-theme="blue"] {
    --chatbot-primary: #3498db;
    --chatbot-primary-dark: #2980b9;
    --chatbot-primary-rgb: 52, 152, 219;
    --chatbot-secondary: #2c3e50;
    --chatbot-secondary-dark: #1a252f;
    --chatbot-secondary-rgb: 44, 62, 80;
}

/* Theme: Purple (Modern) */
[data-chatbot-theme="purple"] {
    --chatbot-primary: #9b59b6;
    --chatbot-primary-dark: #8e44ad;
    --chatbot-primary-rgb: 155, 89, 182;
    --chatbot-secondary: #e74c3c;
    --chatbot-secondary-dark: #c0392b;
    --chatbot-secondary-rgb: 231, 76, 60;
}

/* Theme: Red (Bold) */
[data-chatbot-theme="red"] {
    --chatbot-primary: #e74c3c;
    --chatbot-primary-dark: #c0392b;
    --chatbot-primary-rgb: 231, 76, 60;
    --chatbot-secondary: #2c3e50;
    --chatbot-secondary-dark: #1a252f;
    --chatbot-secondary-rgb: 44, 62, 80;
}

/* ===== MAIN CHAT CONTAINER ===== */
#chatbot-chatgpt-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Chat Head - Main Window */
#chatbot-chatgpt-head {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 500px;
    height: 70vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    overflow: visible;
    transition: all 0.3s ease;
}

/* ===== FLOATING AVATAR - Outside chat window ===== */
.Avatarius {
    position: absolute;
    left: -200px;
    bottom: 0;
    width: 180px;
    height: auto;
    z-index: 9997;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Modern hover effect */
.Avatarius:hover,
.Avatarius.avatar-hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 25px rgba(var(--chatbot-primary-rgb), 0.4));
}

/* Subtle floating animation */
@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.Avatarius:not(:hover) {
    animation: avatarFloat 4s ease-in-out infinite;
}

.Avatarius img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: none;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
    transition: opacity 0.2s ease-in-out, transform 0.3s ease;
}

/* Glowing effect on avatar */
.Avatarius::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(var(--chatbot-primary-rgb), 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.Avatarius:hover::after,
.Avatarius.talking::after,
.Avatarius.waving::after,
.Avatarius.happy::after {
    opacity: 1;
}

/* Show only the Normal avatar by default */
.Avatarius .Avatarius_Normal {
    display: block;
}

/* State transitions with smooth fade */
.Avatarius.talking .Avatarius_Normal,
.Avatarius.waving .Avatarius_Normal,
.Avatarius.happy .Avatarius_Normal {
    display: none;
}

/* When talking, show Talk avatar with pulse effect */
.Avatarius.talking .Avatarius_Talk {
    display: block;
    animation: talkPulse 0.5s ease-in-out infinite alternate;
}

@keyframes talkPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* When waving, show Winken avatar */
.Avatarius.waving .Avatarius_Winken {
    display: block;
}

/* When happy, show Happy avatar with bounce */
.Avatarius.happy .Avatarius_Happy {
    display: block;
    animation: happyBounce 0.6s ease;
}

@keyframes happyBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-5px); }
}

/* Speech bubble for avatar (optional) */
.avatar-speech-bubble {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.avatar-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.Avatarius:hover .avatar-speech-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Inner Chat Container */
#chatbot-chatgpt {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

/* ===== HEADER ===== */
#chatbot-chatgpt-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}


#chatbot-chatgpt-header{
    background-color: rgba(var(--chatbot-primary-rgb), 0.1);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

#profile-pic2 {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--chatbot-primary);
    box-shadow: 0 2px 8px rgba(var(--chatbot-primary-rgb), 0.302);
}

#chatgptTitle.title {
    color: var(--chatbot-primary);
    font-size: 17px;
    font-weight: 700;
    flex-grow: 1;
    letter-spacing: -0.3px;
}

.large_small_btn {
    box-shadow: 0 2px 8px rgba(var(--chatbot-primary-rgb), 0.1);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background-color: rgba(var(--chatbot-primary-rgb), 0.1);
    justify-content: center;
}

.large_small_btn:hover {
    background-color: rgba(var(--chatbot-primary-rgb), 0.2);
}

.bigger_btn {
    width: 18px;
    height: 18px;
    fill: var(--chatbot-primary);
}

/* ===== CLOSE/COLLAPSE BUTTON ===== */
#close-chat,
.chatbot-collapse-btn {
    background-color: rgba(var(--chatbot-primary-rgb), 0.1);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 18px;
    color: var(--chatbot-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 8px;
}

#close-chat:hover,
.chatbot-collapse-btn:hover {
    background-color: rgba(var(--chatbot-secondary-rgb), 0.15);
    color: var(--chatbot-secondary);
}

#close-chat:before,
.chatbot-collapse-btn:before {
    font-family: 'dashicons';
    content: '\f158';
}

/* ===== VOLUME/SOUND BUTTON ===== */
#chatbot-chatgpt-text-to-speech-btn {
    background-color: rgba(var(--chatbot-secondary-rgb), 0.1);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 18px;
    color: var(--chatbot-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

#chatbot-chatgpt-text-to-speech-btn:hover {
    background-color: rgba(var(--chatbot-secondary-rgb), 0.2);
}

/* Volume off state - muted */
.dashicons-controls-volumeoff {
    color: #999;
}

.dashicons-controls-volumeoff:hover {
    color: var(--chatbot-secondary);
}

/* ===== INFO POPUP BANNER ===== */
.popup_info {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    width: 100%;
}

.popup-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    flex: 1;
    margin-right: 12px;
}

.popup-text a {
    color: var(--chatbot-secondary);
    text-decoration: none;
    font-weight: 500;
}

.popup-text a:hover {
    text-decoration: underline;
}

.popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.show-popup {
    display: none;
    position: absolute;
    top: 70px;
    right: 18px;
    background: rgba(var(--chatbot-primary-rgb), 0.1);
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--chatbot-secondary);
    z-index: 10;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.show-popup:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.2);
}

/* ===== CONVERSATION AREA ===== */
#chatbot-chatgpt-conversation {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: transparent;
    position: relative;
}

/* Custom Scrollbar */
#chatbot-chatgpt-conversation::-webkit-scrollbar {
    width: 6px;
}

#chatbot-chatgpt-conversation::-webkit-scrollbar-track {
    background: transparent;
}

#chatbot-chatgpt-conversation::-webkit-scrollbar-thumb {
    background: rgba(var(--chatbot-secondary-rgb), 0.3);
    border-radius: 3px;
}

#chatbot-chatgpt-conversation::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.5);
}

/* Background Logo */
.chat-image-container2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

#chat-image2,
.Logo_Chat {
    max-width: 180px;
    height: auto;
}

/* ===== MESSAGES ===== */
.chat-message {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    text-align: right;
}

.user-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--chatbot-primary) 0%, var(--chatbot-primary-dark) 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 20px 20px 6px 20px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 10px rgba(var(--chatbot-secondary-rgb), 0.25);
}

.bot-message {
    text-align: left;
}

.bot-text {
    display: inline-block;
    background: white;
    color: #333;
    padding: 12px 18px;
    border-radius: 20px 20px 20px 6px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.message-space {
    height: 4px;
}

.error-message {
    text-align: center;
}

.error-text {
    color: var(--chatbot-secondary);
    font-weight: 500;
    font-size: 13px;
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* ===== MESSAGE TIMESTAMPS ===== */
.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 6px;
    padding: 0 4px;
}

.user-message .message-footer {
    justify-content: flex-end;
}

.message-timestamp {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.2px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.chat-message:hover .message-timestamp {
    opacity: 1;
}

.user-message .message-timestamp {
    color: rgba(var(--chatbot-secondary-rgb), 0.7);
}

.bot-message .message-timestamp {
    color: #aaa;
}

/* TTS button in message footer */
.message-footer .tts-btn,
.message-footer button {
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    background: transparent;
    color: var(--chatbot-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.message-footer .tts-btn:hover,
.message-footer button:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
}

/* ===== ENHANCED TYPING INDICATOR ===== */
.typing-indicator-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px 0;
    animation: fadeIn 0.3s ease;
}

.typing-text {
    font-size: 12px;
    color: var(--chatbot-secondary);
    font-weight: 500;
    margin-bottom: 6px;
    padding-left: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 12px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--chatbot-secondary);
    border-radius: 50%;
    margin-right: 6px;
    animation: typing 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; margin-right: 0; }

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===== HELP BUTTON & DROPDOWN ===== */
#chatbot-chatgpt-prompt {
    position: relative;
    padding: 8px 18px;
    text-align: right;
    flex-shrink: 0;
}

.square-button-support {
    background: white;
    color: var(--chatbot-secondary);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.square-button-support:hover {
    background: var(--chatbot-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--chatbot-primary-rgb), 0.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 18px;
    background: white;
    min-width: 200px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    margin-bottom: 8px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.dropdown-content button:hover {
    background: rgba(var(--chatbot-primary-rgb), 0.1);
    color: var(--chatbot-secondary);
}

.dropdown-content button:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* ===== MESSAGE COUNTER ===== */
.chatbot-chatgpt-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background: transparent;
    flex-shrink: 0;
}
#message-count-container {
    background: white;
    padding: 10px 18px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    margin: 8px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

p.counter_text {
    margin: 0;
    color: var(--chatbot-secondary);
    font-size: 13px;
    font-weight: 600;
}

span#message-count {
    color: #333;
    font-weight: 700;
    margin-left: 4px;
}

/* ===== INPUT AREA ===== */
.test {
    display: flex;
    align-items: center;
    background: white;
    padding: 14px 18px;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.chatbot-chatgpt-erase,
.chatbot_chatgpt_file_uploads {
    flex-shrink: 0;
}

#chatbot-chatgpt-erase-btn {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-chatgpt-erase-btn:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
}

#chatbot-chatgpt-erase-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

#chatbot-chatgpt-erase-btn:hover img {
    opacity: 1;
}

#chatbot-chatgpt-upload-file {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s;
    display: none;
}

#chatbot-chatgpt-upload-file:hover {
    background: rgba(var(--chatbot-primary-rgb), 0.1);
}

#chatbot-chatgpt-input {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

#chatbot-chatgpt-message {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    background: #f8f9fa;
    color: #333;
    transition: all 0.2s;
}

#chatbot-chatgpt-message:focus {
    border-color: var(--chatbot-secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(var(--chatbot-secondary-rgb), 0.1);
}

#chatbot-chatgpt-message::placeholder {
    color: #adb5bd;
}

#chatbot-chatgpt-submit {
    background: linear-gradient(135deg, var(--chatbot-secondary) 0%, var(--chatbot-secondary-dark) 100%);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--chatbot-secondary-rgb), 0.35);
}

#chatbot-chatgpt-submit:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(var(--chatbot-secondary-rgb), 0.45);
}

#chatbot-chatgpt-submit:active {
    transform: scale(0.95);
}

#chatbot-chatgpt-submit img,
.send_arrow {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ===== FLOATING OPEN BUTTON ===== */
#chatgpt-open-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--chatbot-secondary) 0%, var(--chatbot-secondary-dark) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(var(--chatbot-secondary-rgb), 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    transition: all 0.3s ease;
}

#chatgpt-open-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(var(--chatbot-secondary-rgb), 0.55);
}

#chatgpt-open-btn:active {
    transform: scale(0.95);
}

#chatgpt-open-btn img,
.chatbot-avatar {
    width: 35px;
    height: 35px;
}

#chatgpt-open-btn i {
    font-size: 28px;
    color: white;
}

/* ===== MINIMIZED PREVIEW ===== */
.chatbot-minimized-preview {
    position: fixed;
    bottom: 95px;
    right: 20px;
    max-width: 280px;
    background: white;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    z-index: 9996;
    animation: previewSlideIn 0.3s ease-out;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-minimized-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

@keyframes previewSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-minimized-preview.hiding {
    animation: previewSlideOut 0.2s ease-in forwards;
}

@keyframes previewSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.preview-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chatbot-secondary) 0%, var(--chatbot-secondary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-avatar img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.preview-bot-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--chatbot-secondary);
}

.preview-time {
    font-size: 10px;
    color: #999;
    margin-left: auto;
}

.preview-message {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.8em;
}

.preview-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chatbot-minimized-preview:hover .preview-close {
    opacity: 1;
}

.preview-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Unread message badge on open button */
.chatbot-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    background: var(--chatbot-secondary);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(var(--chatbot-secondary-rgb), 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== QUICK REPLY BUTTONS ===== */
.quick-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    padding: 0 4px;
    animation: fadeIn 0.3s ease;
}

.quick-reply-btn {
    background: white;
    border: 1.5px solid var(--chatbot-secondary);
    color: var(--chatbot-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--chatbot-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(var(--chatbot-primary-rgb), 0.3);
}

.quick-reply-btn:active {
    transform: translateY(0);
}

.quick-reply-btn.clicked {
    background: var(--chatbot-secondary);
    color: white;
    border-color: var(--chatbot-secondary);
    pointer-events: none;
    opacity: 0.7;
}

/* ===== FEEDBACK BUTTONS ===== */
.message-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.feedback-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.feedback-btn.active {
    opacity: 1;
}

.feedback-btn.thumbs-up.active {
    color: var(--chatbot-primary);
}

.feedback-btn.thumbs-down.active {
    color: var(--chatbot-secondary);
}

/* ===== FOLLOW-UP SUGGESTIONS ===== */
.follow-up-container {
    margin: 12px 0 8px 0;
    padding: 0 4px;
}

.follow-up-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.follow-up-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.follow-up-btn {
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    border: none;
    color: var(--chatbot-secondary);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-up-btn:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.2);
    transform: translateY(-1px);
}

/* ===== MESSAGE SEARCH ===== */
.chat-search-container {
    padding: 10px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
}

.chat-search-container.active {
    display: block;
}

.chat-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    background: white;
    transition: all 0.2s ease;
}

.chat-search-input:focus {
    border-color: var(--chatbot-secondary);
    box-shadow: 0 0 0 3px rgba(var(--chatbot-secondary-rgb), 0.1);
}

.search-results-count {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    text-align: center;
}

.search-highlight {
    background: rgba(var(--chatbot-secondary-rgb), 0.3);
    padding: 1px 2px;
    border-radius: 2px;
}

/* ===== EXPORT MENU ===== */
.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
    display: none;
}

.export-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

.export-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
    color: #333;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.export-menu-item:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    color: var(--chatbot-secondary);
}

.export-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ===== CONVERSATION HISTORY ===== */
.history-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 500;
    display: none;
    flex-direction: column;
    border-radius: 20px;
}

.history-panel.show {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.history-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.history-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.2s ease;
}

.history-close-btn:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    color: var(--chatbot-secondary);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.history-item {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.history-item:hover {
    background: rgba(var(--chatbot-primary-rgb), 0.1);
}

.history-item-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.history-item-preview {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-count {
    font-size: 11px;
    color: var(--chatbot-secondary);
    margin-top: 4px;
}

.history-actions {
    padding: 15px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 10px;
}

.history-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-action-btn.primary {
    background: linear-gradient(135deg, var(--chatbot-primary) 0%, var(--chatbot-primary-dark) 100%);
    color: white;
}

.history-action-btn.danger {
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    color: var(--chatbot-secondary);
}

.history-action-btn:hover {
    transform: translateY(-1px);
}

/* ===== LANGUAGE SELECTOR ===== */
.chatbot-chatgpt-header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    border: none;
    padding: 4px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--chatbot-secondary);
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: rgba(var(--chatbot-secondary-rgb), 0.2);
}

.language-flag {
    font-size: 16px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 100;
    overflow: hidden;
    display: none;
    margin-top: 10px;
}

.language-dropdown.show {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
    color: #333;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.language-option:hover {
    background: rgba(var(--chatbot-primary-rgb), 0.1);
}

.language-option.active {
    background: rgba(var(--chatbot-secondary-rgb), 0.15);
    color: var(--chatbot-secondary);
    font-weight: 600;
}

/* ===== RATE LIMITING UI ===== */
.rate-limit-container {
    padding: 10px 18px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.rate-limit-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.rate-limit-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--chatbot-primary) 0%, var(--chatbot-primary-dark) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.rate-limit-progress.warning {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.rate-limit-progress.danger {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.rate-limit-text {
    font-size: 11px;
    color: #888;
    text-align: center;
}

.rate-limit-countdown {
    font-size: 12px;
    color: var(--chatbot-secondary);
    text-align: center;
    padding: 8px;
    background: rgba(var(--chatbot-secondary-rgb), 0.1);
    border-radius: 8px;
    margin-top: 8px;
}

/* ===== RICH MEDIA SUPPORT ===== */
/* Links in messages */
.bot-text a,
.user-text a {
    color: var(--chatbot-primary);
    text-decoration: underline;
    word-break: break-word;
}

.bot-text a:hover,
.user-text a:hover {
    color: var(--chatbot-primary-dark);
}

/* Images in messages */
.message-image {
    max-width: 100%;
    border-radius: 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-image:hover {
    transform: scale(1.02);
}

/* Image lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Lists in messages */
.bot-text ul,
.bot-text ol {
    margin: 8px 0;
    padding-left: 20px;
}

.bot-text li {
    margin: 4px 0;
}

/* Bold and italic */
.bot-text strong,
.bot-text b {
    font-weight: 600;
}

.bot-text em,
.bot-text i {
    font-style: italic;
}

/* Blockquotes */
.bot-text blockquote {
    border-left: 3px solid var(--chatbot-primary);
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
    font-style: italic;
}

/* Tables */
.bot-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.bot-text th,
.bot-text td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
}

.bot-text th {
    background: #f5f5f5;
    font-weight: 600;
}

.bot-text tr:nth-child(even) {
    background: #fafafa;
}

/* ===== CODE SYNTAX HIGHLIGHTING ===== */
/* Inline code */
.bot-text code {
    background: rgba(var(--chatbot-primary-rgb), 0.1);
    color: var(--chatbot-primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Code blocks */
.code-block-container {
    position: relative;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 6px 12px;
    font-size: 11px;
}

.code-language {
    color: var(--chatbot-primary);
    font-weight: 500;
    text-transform: uppercase;
}

.copy-code-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.copy-code-btn.copied {
    background: var(--chatbot-primary);
    border-color: var(--chatbot-primary);
    color: white;
}

.bot-text pre {
    margin: 0;
    background: #1e1e1e;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.bot-text pre code {
    background: transparent;
    color: #d4d4d4;
    padding: 0;
    border-radius: 0;
}

/* Highlight.js theme customization */
.hljs {
    background: #1e1e1e;
    color: #d4d4d4;
}

.hljs-keyword {
    color: #569cd6;
}

.hljs-string {
    color: #ce9178;
}

.hljs-comment {
    color: #6a9955;
}

.hljs-number {
    color: #b5cea8;
}

.hljs-function {
    color: #dcdcaa;
}

.hljs-variable {
    color: #9cdcfe;
}

/* ===== OVERLAY & POPUPS ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

.popup {
    background: white;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 300px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.popup p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.policy_private {
    color: var(--chatbot-primary) !important;
    font-weight: 600;
}

#akzeptieren-btn {
    background: linear-gradient(135deg, #E5A22B 0%, #e1701a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 162, 43, 0.4);
    transition: all 0.2s;
}

#akzeptieren-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 162, 43, 0.5);
}

/* ===== GUEST REGISTRATION FORM ===== */
#chatbot-guest-registration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

#chatbot-guest-registration .popup {
    background: white;
    padding: 32px;
    border-radius: 20px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

#chatbot-guest-registration h4 {
    color: var(--chatbot-primary);
    margin: 0 0 8px 0;
    font-size: 22px;
    text-align: center;
    font-weight: 700;
}

#chatbot-guest-registration p {
    color: #666;
    margin: 0 0 24px 0;
    text-align: center;
    font-size: 13px;
}

#chatbot-guest-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}

#chatbot-guest-form label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

#chatbot-guest-form input[type="text"],
#chatbot-guest-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
    background: #f8f9fa;
}

#chatbot-guest-form input[type="text"]:focus,
#chatbot-guest-form input[type="email"]:focus {
    border-color: var(--chatbot-primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(var(--chatbot-primary-rgb), 0.1);
}

#guest-register-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--chatbot-primary) 0%, var(--chatbot-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(var(--chatbot-primary-rgb), 0.35);
}

#guest-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--chatbot-primary-rgb), 0.45);
}

#guest-register-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#guest-registration-error {
    background-color: #fff5f5;
    border: 1px solid var(--chatbot-secondary);
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--chatbot-secondary);
}

/* ===== LARGE MODE ===== */
#chatbot-chatgpt-head.large {
    width: 90%;
    height: 80vh;
}

#chatbot-chatgpt-head.large .Avatarius {
    left: -140px;
    width: 200px;
}

#chatbot-chatgpt-head.large .Avatarius img {
    max-height: 400px;
}

/* ===== DISABLED STATE ===== */
button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: none !important;
    transform: none !important;
}

/* ===== TOOLTIPS ===== */
#chatbot-chatgpt-erase-btn .tooltiptext,
#chatbot-chatgpt-text-to-speech-btn .tooltiptext {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
}

#chatbot-chatgpt-erase-btn:hover .tooltiptext,
#chatbot-chatgpt-text-to-speech-btn:hover .tooltiptext {
    visibility: visible;
}

/* ===== VOICE BUTTONS ===== */
.voice_buttons {
    display: flex;
    gap: 10px;
    padding: 10px 18px;
}

/* ===== CODE BLOCKS ===== */
code {
    font-size: 12px;
    background-color: #f1f3f4;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
}

pre {
    margin: 15px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

/* ===== RESPONSIVE - TABLET ===== */
@media screen and (max-width: 900px) {
    #chatbot-chatgpt-head {
        width: 360px;
        height: 480px;
        bottom: 80px;
        right: 15px;
    }

    .Avatarius {
        left: -200px;
        width: 150px;
    }

    .Avatarius img {
        max-height: 280px;
    }

    #chatbot-chatgpt-head.large {
        width: 420px;
        height: 550px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media screen and (max-width: 600px) {
    #chatbot-chatgpt-head {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    /* Hide avatar on mobile */
    .Avatarius {
        display: none;
    }

    #chatbot-chatgpt {
        border-radius: 0;
    }

    #chatbot-chatgpt-header {
        border-radius: 0;
    }

    .test {
        border-radius: 0;
    }

    #chatbot-chatgpt-head.large {
        width: 100%;
        height: 100%;
    }

    .large_small_btn {
        display: none;
    }

    #chatgpt-open-btn {
        bottom: 15px;
        right: 15px;
        width: 58px;
        height: 58px;
    }

    #chatbot-chatgpt-message {
        padding: 11px 16px;
    }

    #chatbot-chatgpt-submit {
        width: 44px;
        height: 44px;
    }

    .popup {
        width: 90%;
        max-width: none;
        margin: 15px;
        border-radius: 16px;
    }

    #chatbot-guest-registration {
        border-radius: 0;
    }

    #chatbot-guest-registration .popup {
        max-width: none;
        width: calc(100% - 40px);
    }

    .overlay {
        border-radius: 0;
    }
}

/* ===== CUSTOM BUTTONS ===== */
.chatbot-chatgpt-custom-button-class {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chatbot-chatgpt-custom-button-class:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

/* ===== BUBBLE STYLE ===== */
.chatbot-bubble {
    background: white;
    color: #333;
    border-radius: 16px;
    padding: 12px 18px;
    margin: 10px;
    font-size: 14px;
    max-width: 250px;
    position: absolute;
    right: 80px;
    bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 9996;
}

/* ===== AUDIO (hidden) ===== */
audio {
    display: none;
}

/* ===== LOADING STATE ===== */
.Loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    padding: 10px;
}

.Loading svg,
.Loading .loading-spinner {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    animation: spin 1s linear infinite;
    stroke: #8c8a8a;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
