/* /css/style.css */
.gym-ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    z-index: 10000;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.ai-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.user-message .message-bubble {
    background: #007AFF;
    color: white;
    border-bottom-right-radius: 5px;
}

.ai-message .message-bubble {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.message-source {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.typing .message-bubble {
    background: white;
    padding: 15px;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

#chatInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#chatInput:focus {
    border-color: #007AFF;
}

#sendBtn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.quick-questions {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.quick-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #007AFF;
    color: white;
    border-color: #007AFF;
}

.feedback-buttons {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 10px 0;
}

.feedback-question {
    font-size: 12px;
    margin-bottom: 8px;
    color: #666;
}

.feedback-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.feedback-btn.good:hover { background: #4CAF50; color: white; border-color: #4CAF50; }
.feedback-btn.ok:hover { background: #FF9800; color: white; border-color: #FF9800; }
.feedback-btn.bad:hover { background: #f44336; color: white; border-color: #f44336; }