.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 9999;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.6);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

#chatbot {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

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

#chatbot.blur {
    filter: blur(0);
}

.chatbot-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.chatbot-header-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-header-content p {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.chatbot-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.chat-message {
    display: flex;
    margin-bottom: 8px;
    animation: messageSlide 0.3s ease-out;
}

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

.bot-message {
    justify-content: flex-start;
}

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

.bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-message .bubble {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
}

.user-message .bubble {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
}

.bubble.long-reply {
    max-width: 90%;
}

.bubble .icon {
    font-size: 16px;
    margin-right: 6px;
}

.bubble .text {
    font-size: 14px;
    line-height: 1.4;
}

.bubble .timestamp {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

.faq-button {
    width: 100%;
    padding: 10px 14px;
    margin: 6px 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s;
}

.faq-button:hover {
    background: #f0f0f0;
    border-color: #ff6600;
}

.faq-button:active {
    background: #ffe6cc;
}

.view-toggle-button {
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #ff6600;
    font-weight: 500;
    transition: all 0.2s;
}

.view-toggle-button:hover {
    background: #f0f0f0;
    border-color: #ff6600;
}

.support-link {
    display: inline-block;
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.support-link:hover {
    background: #f0f0f0;
}

.support-link-contact {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.support-link-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.chatbot-footer {
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chatbot-input-group {
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: #ff6600;
}

.chatbot-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.chatbot-send-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}

.chatbot-send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.start-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 1000;
}

.start-prompt-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.start-prompt-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.start-prompt-content p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.start-prompt-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.start-prompt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

@media (max-width: 480px) {
    #chatbot {
        width: calc(100vw - 32px);
        max-height: 70vh;
        bottom: 20px;
        left: 16px;
        right: 16px;
    }

    .bubble {
        max-width: 90%;
    }

    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
}

/* Chatbot Tooltip */
.chatbot-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #ff6600;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    animation: fadeInRight 0.5s ease-out;
}

.tooltip-arrow {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ff6600;
}

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

.join-now-btn {
    display: inline-block;
    background: #ff6600;
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.chatbot-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
}

.chatbot-table td {
    border: 1px solid #ddd;
    padding: 6px;
}

.chatbot-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
