#chat-llm-widget {
    background: radial-gradient(circle at top left, rgba(2, 3, 20, 0.5) 25%, rgba(2, 3, 40, 0.5) 100%);
    border: none;
    max-width: 80%;
    margin: 30px auto;
    box-shadow: 0 2px 16px 0 rgba(40, 30, 80, 0.5), 0 0 0 10px rgba(40,30,80,0.07);
    border-radius: 18px;
    font-family: 'Cormorant Garamond', 'Segoe UI', Georgia, serif;
    color: #f8f6ff;
    position: relative;
    overflow: hidden;
}

/* Starry background using CSS gradients and pseudo-elements */
#chat-llm-widget:before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0.2;
}

/* Message Area */
#chat-llm-messages {
    height: 300px;
    overflow-y: auto;
    padding: 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Chat bubble styles */
.msg {
    max-width: 80%;
    margin-bottom: 14px;
    padding: 12px 18px;
    border-radius: 22px;
    box-shadow: 0 2px 14px 0 rgba(80,50,180,0.08);
    font-size: 1.08em;
    word-break: break-word;
    line-height: 1.32em;
    backdrop-filter: blur(1px);
}

/* User bubbles: shimmering blue-violet */
.msg.user {
    background: linear-gradient(135deg, rgba(77,38,164,0.94), rgba(19,13,42,0.90));
    color: #e6d6ff;
    align-self: flex-end;
    text-align: right;
    border: 1px solid rgba(164,120,255, 0.25);
    box-shadow: 0 0 6px 1px #876ff2;
}

/* Assistant bubbles: cosmic golden glow */
.msg.assistant {
    background: linear-gradient(135deg, rgba(140,112,44,0.90), rgba(80,51,125,0.85));
    color: #fffde8;
    border: 1px solid rgba(255,214,112,0.2);
    box-shadow: 0 0 12px 1px #ffd785;
    text-align: left;
    align-self: flex-start;
}

.msg strong {
    display: block;
    font-size: 0.88em;
    font-family: 'Rubik', 'Georgia', serif;
    color: #ffe070;
    letter-spacing: 0.035em;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.78;
}

/* Input Bar */
#chat-llm-input {
    display: flex;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(10,12,40,0.60) 0%, rgba(34,15,40,0.78) 100%);
    border-top: 1px solid rgba(255,255,255,0.07);
    position: relative;
    z-index: 2;
}

#chat-llm-input input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: rgba(38, 20, 60, 0.87);
    color: #dfd6fa;
    border-radius: 14px 0 0 14px;
    font-family: 'Cormorant Garamond', 'Segoe UI', Georgia, serif;
    font-size: 1.05em;
    outline: none;
    box-shadow: 1px 1px 8px 1px rgba(90,60,180,0.07);
}

#chat-llm-input input::placeholder {
    color: #bda7e6;
    font-style: italic;
    opacity: 0.8;
}

#chat-llm-input button {
    padding: 0 28px;
    border: none;
    background: linear-gradient(90deg, #ffd785 0%, #876ff2 100%);
    color: #25144d;
    border-radius: 0 14px 14px 0;
    font-family: 'Rubik', 'Georgia', serif;
    font-size: 1.07em;
    font-weight: bold;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 2px 14px 0 rgba(255,215,133,0.09);
    transition: background 0.3s;
}

#chat-llm-input button:hover {
    background: linear-gradient(90deg, #876ff2 0%, #ffd785 100%);
}

/* Scrollbar for mystical vibe */
#chat-llm-messages::-webkit-scrollbar {
    width: 8px;
    background: rgba(80,52,130,0.1);
}

#chat-llm-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #876ff2 0%, #ffd785 100%);
    border-radius: 8px;
}

/* Responsive */
@media (min-width: 400px) and (max-width: 800px) {
    #chat-llm-widget {
        max-width: 100%;
        border-radius: 12px;
    }
    .msg {
        font-size: 1em;
        max-width: 96%;
        padding: 10px 12px;
    }
    #chat-llm-input {
        padding: 12px 16px;
    }
    #chat-llm-input input {
        padding: 12px 16px;
    }
}

@media (min-width: 0px) and (max-width: 400px) {
    #chat-llm-widget {
        max-width: 100%;
        border-radius: 8px;
    }
    .msg {
        font-size: 1em;
        max-width: 96%;
        padding: 2px 4px;
    }
    #chat-llm-input {
        padding: 4px 4px;
    }
    #chat-llm-input input {
        padding: 4px 4px;
    }
}