#simple-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 450px;
    border: 1px solid #ccc;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-size: 0.8em;
    border-radius: 8px;
    user-select: text;
}
#simple-chat-widget.simple-chat-minimized {
    height: 36px;
    width: 320px;
    overflow: hidden;
}
#simple-chat-widget.simple-chat-minimized #simple-chat-messages,
#simple-chat-widget.simple-chat-minimized #simple-chat-input-area {
    display: none !important;
}
#simple-chat-header {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#simple-chat-title {
    flex: 1;
}
#simple-chat-minimize,#simple-chat-restore {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}
#simple-chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
}
.simple-chat-message {
    margin-bottom: 10px;
    max-width: 90%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.simple-chat-message strong {
/*    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    color: #555;*/
}
.simple-chat-user {
    background-color: #007bff;
    color: white;
    margin-left: auto;
    border-radius: 12px 12px 0 12px;
}
.simple-chat-assistant, .simple-chat-system {
    background-color: #e9ecef;
    color: #333;
    margin-right: auto;
    border-radius: 12px 12px 12px 0;
}
.simple-chat-system {
    background-color: #fff3cd;
    color: #856404;
    font-style: italic;
    font-size: 0.8em;
}
#simple-chat-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 6px;
    align-items: center;
    background: #fff;
    border-radius: 0 0 8px 8px;
}
#simple-chat-input_wrapper {
    width: 100%;
}
#simple-chat-input {
    flex-grow: 1;
    padding: 8px 10px;
    /*border-radius: 20px;*/
    outline: none;
}
#simple-chat-send {
    cursor: pointer;
    width: 15%
}
#simple-chat-send:disabled {
    cursor: not-allowed;
}
#simple-chat-spinner {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
