.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateY(380px);
}

.chat-widget.expanded {
    transform: translateY(0);
}

.chat-header {
    background: #6C73A8;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: white;
    color: black;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    line-height: 1.4;
    color: black;
}

.user-message {
    color: black;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    color: black;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    background: #ffffff;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    outline: none;
    background: #f5f5f5;
    color: #333333;
}

.chat-input button {
    background: #0066C3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #0052a3;
}