.chatbot-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}
.chatbot-toggle {
width: 60px;
height: 60px;
border-radius: 50%;
background: #2c3e50;
color: white;
border: none;
font-size: 28px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.chatbot-toggle:hover {
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.chatbot-window {
position: absolute;
bottom: 80px;
right: 0;
width: 350px;
height: 500px;
background: white;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
overflow: hidden;
}
.chatbot-header {
background: #2c3e50;
color: white;
padding: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.chatbot-header h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
}
.close-btn {
background: none;
border: none;
color: white;
font-size: 28px;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background 0.2s;
}
.close-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.chatbot-messages {
flex: 1;
padding: 16px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 12px;
background: #f5f5f5;
}
.message {
padding: 10px 14px;
border-radius: 12px;
max-width: 80%;
word-wrap: break-word;
}
.message.user {
background: #2c3e50;
color: white;
align-self: flex-end;
margin-left: auto;
}
.message.bot {
background: white;
color: #333;
align-self: flex-start;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.chatbot-input {
padding: 16px;
background: white;
border-top: 1px solid #e0e0e0;
display: flex;
gap: 8px;
}
.chatbot-input input {
flex: 1;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 20px;
font-size: 14px;
outline: none;
}
.chatbot-input input:focus {
border-color: #2c3e50;
}
.chatbot-input button {
padding: 10px 20px;
background: #2c3e50;
color: white;
border: none;
border-radius: 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background 0.2s;
}
.chatbot-input button:hover {
background: #34495e;
}