/* AI Chatbot Widget Styles */

.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chatbot-button i {
    color: white;
    font-size: 24px;
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 550px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-weight: 500;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chatbot-message {
    max-width: 80%;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    align-self: flex-start;
    background: #f1f1f1;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-message {
    align-self: flex-end;
    background: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: white;
    border-bottom-right-radius: 5px;
}

.chatbot-message p {
    margin: 0;
}

.chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--primary);
}

.chatbot-send {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    background: #128f76;
    transform: scale(1.05);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    height: 10px;
    width: 10px;
    margin: 0 3px;
    background-color: #18BC9C;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
    box-shadow: 0 0 5px rgba(24, 188, 156, 0.5);
}

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

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

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

@keyframes typing {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.8);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

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

/* Suggested questions styles */
.chatbot-suggested-questions {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggested-questions-title {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.suggested-question {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.suggested-question:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 767px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        max-width: 350px;
        height: 550px;
        bottom: 70px;
        right: 0;
    }
    
    .chatbot-button {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-button i {
        font-size: 20px;
    }
    
    .chatbot-message {
        max-width: 85%;
        padding: 8px 12px;
    }
    
    .chatbot-input {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        max-width: 300px;
        height: 500px;
        bottom: 70px;
    }
    
    .chatbot-header {
        padding: 10px 15px;
    }
    
    .chatbot-header h4 {
        font-size: 16px;
    }
    
    .chatbot-messages {
        padding: 10px;
    }
    
    .chatbot-suggested-questions {
        padding: 8px 10px;
    }
    
    .suggested-question {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-height: 600px) {
    .chatbot-container {
        height: 450px;
    }
}

@media (max-height: 600px) {
    .chatbot-container {
        height: 350px;
    }
}