/* Chatbot Main Page Styles */
.chatbot-container {
    max-height: 800px;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.chatbot-container .card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    padding: 1rem;
    position: relative;
}

.chatbot-container .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.chatbot-container .chatbot-avatar {
    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.2rem;
}

.chatbot-container .chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-container .message {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
}

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

.chatbot-container .user-message {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.chatbot-container .message-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 80%;
}

.chatbot-container .user-message .message-content {
    flex-direction: row-reverse;
}

.chatbot-container .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-container .bot-message .avatar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.chatbot-container .user-message .avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.chatbot-container .content {
    flex: 1;
}

.chatbot-container .bot-message .content {
    background: white;
    border-radius: 18px 18px 18px 4px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chatbot-container .user-message .content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.chatbot-container .text {
    line-height: 1.4;
    word-wrap: break-word;
}

.chatbot-container .suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chatbot-container .suggestion-btn {
    font-size: 0.85rem;
    border-radius: 15px;
    transition: all 0.2s;
}

.chatbot-container .suggestion-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product List Styles */
.chatbot-container .products-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.chatbot-container .product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.chatbot-container .product-item:hover {
    background: #e9ecef;
}

.chatbot-container .product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.chatbot-container .product-info {
    flex: 1;
}

.chatbot-container .product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.chatbot-container .product-price {
    color: #28a745;
    font-weight: 600;
}

/* Order List Styles */
.chatbot-container .orders-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chatbot-container .order-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.chatbot-container .order-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.chatbot-container .order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.chatbot-container .order-status.processing {
    background: #d4edda;
    color: #155724;
}

.chatbot-container .order-status.shipped {
    background: #cce5ff;
    color: #004085;
}

/* Form Styles */
.chatbot-container .form-field {
    margin-bottom: 1rem;
}

.chatbot-container .form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.chatbot-container .form-field input,
.chatbot-container .form-field textarea,
.chatbot-container .form-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Chat Input Styles */
.chatbot-container .card-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

#messageInput {
    border-radius: 25px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

#messageInput:focus {
    box-shadow: 0 0 0 0.3rem rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

#sendBtn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    transition: all 0.3s ease;
}

#sendBtn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
}

#voiceBtn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

#voiceBtn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: scale(1.05);
}

/* Typing Indicator */
.chatbot-container .typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-style: italic;
}

.chatbot-container .typing-dots {
    display: flex;
    gap: 0.2rem;
}

.chatbot-container .typing-dots span {
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chatbot-container .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-container .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Scrollbar Styles */
.chatbot-container .chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-container .chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-container .chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-container .chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container .chatbot-container {
        margin: 0.5rem;
    }

    .chatbot-container .chat-messages {
        height: 400px;
    }

    .chatbot-container .message-content {
        max-width: 90%;
    }

    .chatbot-container .suggestions {
        flex-direction: column;
    }

    .chatbot-container .suggestion-btn {
        width: 100%;
    }
}

/* Animation for new messages */
.chatbot-container .message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Help Menu Styles */
.chatbot-container .help-menu {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chatbot-container .help-option {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chatbot-container .help-option:hover {
    background: #e9ecef;
}

.chatbot-container .help-option-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.chatbot-container .help-option-description {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Contact Info Styles */
.chatbot-container .contact-info {
    margin-top: 0.75rem;
}

.chatbot-container .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chatbot-container .contact-item i {
    width: 16px;
    text-align: center;
    color: #007bff;
}

/* Category List Styles */
.chatbot-container .categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chatbot-container .category-item {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.chatbot-container .category-item:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}