/* Chatbot Widget Styles */
#trendie-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.chat-icon {
    font-size: 1.2rem;
}

.chat-arrow {
    font-size: 1rem;
}

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-container.open {
    display: flex;
}

.chatbot-header {
    background: #ff6b35;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chatbot-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.chatbot-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.chatbot-welcome {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.welcome-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.bot-message {
    background: #f0f0f0;
    color: #333;
}

.user-message {
    background: #ff6b35;
    color: white;
    margin-left: auto;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    text-align: right;
}

.message-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

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

.message-wrapper.user .message-bubble {
    margin-left: auto;
}

.chatbot-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #ff6b35;
}

.conversation-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
}

.empty-illustration {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.new-conversation-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-conversation-btn:hover {
    background: #e55a2b;
}

.chatbot-conversation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.service-option:hover {
    background: #f5f5f5;
    border-color: #ff6b35;
}

.service-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6b35;
}

.service-option span {
    font-size: 0.9rem;
    color: #333;
    flex: 1;
}

.input-message {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

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

.country-code {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.submit-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #e55a2b;
}

.chatbot-nav {
    display: flex;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item.active {
    background: #fff5f0;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff6b35;
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.nav-item.active .nav-label {
    color: #ff6b35;
    font-weight: 600;
}

/* Scrollbar styling */
.chatbot-body::-webkit-scrollbar,
.services-list::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track,
.services-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

.chat-ended-message {
    margin-top: 15px;
    padding: 10px;
    background: #fff5f0;
    border-left: 3px solid #ff6b35;
    border-radius: 8px;
}

.new-conversation-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.new-conversation-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    width: 100%;
    justify-content: center;
}

.new-conversation-btn:hover {
    background: #e55a2b;
}

.new-conversation-icon {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        height: calc(100vh - 100px);
        border-radius: 20px 20px 0 0;
    }
    
    .chatbot-toggle {
        right: 10px;
        bottom: 10px;
    }
}

