/* Make it more beautiful */

.chat {
    gap: 10px;
}
.chat .meta,
.chat .user,
.chat .action,
.chat .assistant {
    padding: 0 10px;
    font-family: "Noto Sans";
    margin: 0 20px;
}
.chat .assistant {
    padding: 5px 10px;
    border: solid 1px #555;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: #2f2f2f;
}
.request,
.flagpick-wrap input {
    font-family: "Noto Sans";
    /* font-size: 14px; */
    font-size: 16px; /* Min value to prevent iOS to zoom when focus */
    padding: 5px 10px;
    border-radius: 5px;
    outline: solid 1px #555;
    border: none;
}
.request:focus,
.flagpick-wrap input:focus {
    outline: solid 1px #999;
}
.flagpanel-element,
.flagpick-element {
    font-family: "Noto Sans";
    font-size: 14px;
}

.flagpanel-element.flagpanel-element-experimental::after, .flagpick-element.flagpick-element-experimental::after {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    transform: translate(12px, -5px) rotate(-20deg);
    text-shadow: none;
    background: white;
    color: black;
    padding: 0 4px;
    border-radius: 3px;
    box-shadow: 0 0 5px black;
}

.chat-experimental .chat-experimental-text,
.overlay-experimental .overlay-experimental-text {
    font-family: "Noto Sans";
    font-size: 14px;

    border: solid 1px #535353;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px black;

    position: relative;
    overflow: hidden;
}
.chat-experimental .chat-experimental-text::before,
.overlay-experimental .overlay-experimental-text::before {
    content: "";
    position: absolute;
    --margin: 300px;
    left: calc(-1 * var(--margin));
    top: calc(-1 * var(--margin));
    width: calc(100% + (2 * var(--margin)));
    height: calc(100% + (2 * var(--margin)));
    z-index: -1;
    background: linear-gradient(0deg, #666666, #464646, #363636, #242424, #282828, #111);
    animation: rotate 3s infinite;
    animation-timing-function: linear;
}
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}
.chat-experimental .chat-experimental-button,
.overlay-experimental .overlay-experimental-button {
    font-family: "Noto Sans";
    font-size: 20px;
}

.retry::before {
    font-family: "Noto Sans";
    font-size: 14px;
}
.retry::after {
    font-family: "Noto Sans";
    font-size: 20px;
}

.search > input.search-prefix,
.search > input.search-input {
    font-family: "Noto Sans";
}

.chat .action {
    margin: 0;
    padding: 10px 20px;
    overflow: scroll;
    flex-shrink: 0;

    position: relative;
}

.chat .action-title {
    padding: 5px 10px 3px;
    position: relative;
    z-index: 2;

    font-family: "SyneMono-Regular";
}
.chat .action-button {
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.chat .action-right {
    position: relative;
    margin-left: 20px;
    border-radius: 5px;
    z-index: 0;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}
.chat .action-right,
.chat .action-right::before {
    border: solid 1px #555;
}
.chat .action-right,
.chat .action-right::before,
.chat .action-right::after {
    background: #2f2f2f;
}
.chat .action-right::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 15px;
    border-radius: 0;
    border-top-left-radius: 100%;
    border-bottom-left-radius: 100%;
    max-width: 100%;
    z-index: 0;
    border-width: 2px;
}
.chat .action-right::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    z-index: 1;
}

body.supersmart .face-header::after {
    position: absolute;
    top: 55px;
    content: "SMART";
    background: white;
    padding: 10px 16px;
    font-family: "Noto Sans";
    font-size: 20px;
    font-weight: 400;
    transform: translateX(20px) rotate(-20deg);
    box-shadow: 0 5px 10px black;
    border-radius: 4px;
}
body.supersmart.supersmart-minimal .face-header::after {
    background: #87ff00;
    color: black;
}
body.supersmart.supersmart-low .face-header::after {
    background: #f9ff00;
    color: black;
}
body.supersmart.supersmart-medium .face-header::after {
    background: #ff3b00;
}
body.supersmart.supersmart-high .face-header::after {
    background: #ff006a;
}
body.supersmart.supersmart-xhigh .face-header::after {
    background: #9500ff;
}
