#mgc-chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 99998;
    transition: transform 0.2s;
}
#mgc-chat-icon:hover {
    transform: scale(1.1);
}
#mgc-chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 99999;
    flex-direction: column;
    overflow: hidden;
}
#mgc-chat-header {
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#mgc-char-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #fff;
    object-fit: cover;
    border: 2px solid #fff;
}
#mgc-char-name {
    font-size: 18px;
    font-weight: bold;
}
#mgc-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}
.mgc-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.mgc-message-bot h1, .mgc-message-bot h2, .mgc-message-bot h3 { margin: 0.4em 0 0.3em; line-height:1.25; font-weight:600; }
.mgc-message-bot h1 { font-size:1.2em; }
.mgc-message-bot h2 { font-size:1.15em; }
.mgc-message-bot h3 { font-size:1.1em; }
.mgc-message-bot p { margin: 0.4em 0; }
.mgc-message-bot ul, .mgc-message-bot ol { margin: 0.4em 0 0.4em 1.25em; padding:0; }
.mgc-message-bot li { margin: 0.25em 0; }
.mgc-message-bot code { background:#fff5d7; padding:2px 4px; border-radius:4px; font-family: Consolas, Menlo, monospace; font-size:0.9em; }
.mgc-message-bot pre { background:#272822; color:#f8f8f2; padding:10px 12px; border-radius:8px; overflow:auto; font-size:0.85em; line-height:1.3; margin:0.6em 0; }
.mgc-message-bot pre code { background:transparent; padding:0; color:inherit; }
.mgc-message-bot a { color:#005bbb; text-decoration:underline; word-break:break-all; }
.mgc-message-bot strong { font-weight:600; }
.mgc-message-bot em { font-style:italic; }
.mgc-message-bot ul ul, .mgc-message-bot ol ol, .mgc-message-bot ul ol, .mgc-message-bot ol ul { margin-top:0.25em; }
.mgc-message-bot {
    white-space: normal;
}
.mgc-message-bot {
    background-color: #e9e9eb;
    align-self: flex-start;
    color: #000;
}
.mgc-message-user {
    color: white;
    align-self: flex-end;
}
#mgc-chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}
#mgc-chat-input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    font-size: 16px;
    resize: none;
    height: 50px;
    font-family: inherit;
}
#mgc-chat-input:focus {
    outline: none;
}
#mgc-chat-submit {
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
}
