:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.chatbot-container {
    width: 100%;
    max-width: 500px;
    height: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.chatbot-header h1 {
    font-size: 1.5rem;
}

.language-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background-color: var(--secondary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background-color: #f0f0f0;
    color: var(--text-color);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
    color: #777;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chatbot-input button:hover {
    background-color: #2980b9;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background-color: #e0e0e0;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.quick-reply:hover {
    background-color: #d0d0d0;
}

.knowledge-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.knowledge-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.knowledge-desc {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.knowledge-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 5px;
}

.typing-indicator {
    display: flex;
    padding: 10px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.chatbot-feedback {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    gap: 5px;
}

.feedback-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 5px;
}

.feedback-btn:hover {
    color: var(--secondary-color);
}