.chat-view {
    position: relative;
    overflow-x: hidden;
    display: flex;
}

.chat-view .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--lumo-contrast-5pct);
    box-shadow: var(--lumo-box-shadow-m);
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

.chat-view .sidebar.visible {
    transform: translateX(0); /* Show when toggled */
}

.sidebar-toggle-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: block !important;
}


.sidebar-button-group {
    position: absolute;
    top: var(--lumo-space-s);
    right: var(--lumo-space-s);
    z-index: 10;
    /* you can tweak spacing here if you want more gap between the two buttons */
}

.sidebar-button-group vaadin-button {
    width: var(--lumo-size-m);
    height: var(--lumo-size-m);
}

vaadin-message {
    gap: var(--lumo-space-m);
}

vaadin-message.you {
    margin-inline-start: auto;
    flex-direction: row-reverse;
}

vaadin-message.you::part(content) {
    background-color: var(--lumo-contrast-5pct);
    padding: var(--lumo-space-s) var(--lumo-space-m);
    border-radius: var(--lumo-border-radius-l);
}

vaadin-message p:last-child {
    margin-bottom: 0.5em;
}

vaadin-message > vaadin-avatar {
    margin: 0;
}

-message-input vaadin-text-area[focused]::part(input-field) {
    box-shadow: 0 0 0 var(--vaadin-focus-ring-width, 2px) var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
}

.top-right-language {
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: 180px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


code {
    font-size: 0.9em;
    background: transparent;
}

p code {
    font-weight: 600;
}

p code::before {
    content: "";
}

p code::after {
    content: "";
}

pre {
    padding: 0.5em 0.75em;
    line-height: 1.4;
    background: var(--lumo-contrast-5pct);
}