/* Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color, #2c3e50);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    animation: chatbotPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.chatbot-toggle:hover {
    background: var(--secondary-color, #3498db);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.12);
}

.chatbot-widget.active .chatbot-window {
    display: flex;
}

.chatbot-header {
    background: var(--primary-color, #2c3e50);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

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

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(248, 249, 250, 0.9);
}

.chatbot-message {
    margin-bottom: 15px;
    display: flex;
}

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

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

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.user-message .message-content {
    background: var(--primary-color, #2c3e50);
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.chatbot-input-area {
    display: flex;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(44, 62, 80, 0.12);
}

#chatbot-input {
    flex: 1;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

#chatbot-input:focus {
    border-color: var(--secondary-color, #3498db);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.chatbot-send-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-color, #2c3e50);
    color: white;
    border: none;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.chatbot-send-btn:hover {
    background: var(--secondary-color, #3498db);
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chatbot-window {
        width: 300px;
        height: 400px;
        bottom: 70px;
    }

/* Feedback Buttons */
.btn-feedback {
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.btn-feedback:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-feedback-positive:hover {
    background: rgba(25, 135, 84, 0.2);
}

.btn-feedback-neutral:hover {
    background: rgba(255, 193, 7, 0.2);
}

.btn-feedback-negative:hover {
    background: rgba(220, 53, 69, 0.2);
}

.feedback-confirmation {
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
