/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: var(--font-body, sans-serif);
    border: 1px solid #eee;
}

.chat-widget.closed {
    height: 50px;
    width: 180px;
    cursor: pointer;
}

.chat-header {
    background: #000; /* Dark theme default */
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-body {
    height: 350px;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: #fff;
}

.chat-input-area input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.chat-input-area button {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.message {
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.system {
    background: #e9ecef;
    align-self: flex-start;
    color: #333;
}

.message.user {
    background: #000;
    color: #fff;
    align-self: flex-end;
}

.typing-indicator {
    font-style: italic;
    color: #888;
    font-size: 0.8rem;
    margin-left: 10px;
}
