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

.chat-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chat-widget-button:hover {
    transform: scale(1.05);
    background-color: #218838;
}

.chat-widget-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.chat-widget-header {
    padding: 15px;
    background-color: #28a745;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-header h5 {
    margin: 0;
    font-weight: 600;
}

.chat-widget-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-widget-form {
    padding: 10px;
    border-top: 1px solid #e9ecef;
    background-color: #fff;
}

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

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message.user .message-content {
    background-color: #007bff;
    color: white;
}

.message.assistant .message-content {
    background-color: #e9ecef;
    color: #343a40;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .chat-widget-container {
        width: 300px;
        right: 0;
        bottom: 70px;
    }
}
