#theme-toggle {
    display: none;
}

.flex.items-center.gap-1:has(#theme-toggle){
    margin-right: auto;
}

.logo {
    height: 72px;
    animation: 15s logo-animation infinite linear;
    width: auto;
    object-fit: contain;
    margin-bottom: 32px;
}

@media (min-width: 375px){
    .logo {
        height: 56px;
        animation: inherit;
    }
}

@keyframes logo-animation {
    100% {
        transform: rotate(360deg);
    }
}

button#new-chat-button {
    width: auto;
    padding: 0 16px 0 8px;
    font-weight: 600;

    &::after {
        content: 'New Chat';
    }
}

.watermark,
#readme-button {
    display: none !important;
}

.flex.w-full.h-full.flex-col.relative[role="presentation"]{
    outline: none !important;
}

@property --mp-rotate {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
:root {
    --mp-card-height: 100px;
    --mp-card-width: 100%;
    --mp-card-stroke-width: 3px;
    --mp-card-animation-duration: 8s;
    --mp-color-primary: #286CF6;
    --mp-color-secondary: #00E0E0;
    --mp-logo-width: 96px;
}
@keyframes mp-border-spin {
    to {
        --mp-rotate: 360deg;
    }
}

.custom-header__logo {
    display: flex;
    margin: 0 auto 8px;
}
.custom-header__logo + .custom-header__title {
    margin-top: 24px;
}
.custom-header__logo svg {
    width: auto;
    height: 48px;
    animation: 14s ai-logo-animation infinite linear;
}
@media (min-width: 992px){
    .custom-header__logo svg {
        height: 72px;
    }
}
.custom-header {
    text-align: center;
}
.custom-header__title {
    letter-spacing: -0.02em;
    display: block;
}
.custom-header__title-label {
    background: linear-gradient(140deg, var(--mp-color-primary), var(--mp-color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
[data-panel] > .logo {
    display: none;
}
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent,
[data-panel] .welcome-screen > .bg-accent {
    position: relative;
    border: 1px solid #c1c1c1;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
}
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent::before,
[data-panel] .welcome-screen > .bg-accent::before {
    content: "";
    width: calc(100% + var(--mp-card-stroke-width) * 2);
    height: calc(100% + var(--mp-card-stroke-width) * 2);
    border-radius: 22px;
    background-image: linear-gradient(var(--mp-rotate), var(--mp-color-secondary), var(--mp-color-primary) 43%, #4e00c2);
    position: absolute;
    z-index: -1;
    top: calc(-1 * var(--mp-card-stroke-width));
    left: calc(-1 * var(--mp-card-stroke-width));
    animation: mp-border-spin var(--mp-card-animation-duration) linear infinite;
    opacity: 0;
    transition: 0.15s opacity;
}
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent::after,
[data-panel] .welcome-screen > .bg-accent::after {
    display: none !important;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.9, 0.5);
    filter:blur(60px);
    background-image: linear-gradient(var(--mp-rotate), var(--mp-color-secondary), var(--mp-color-primary) 43%, #4e00c2);
    transition: opacity 1s;
    animation: mp-border-spin var(--mp-card-animation-duration) linear infinite;
}
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent.is-focus,
[data-panel] .welcome-screen > .bg-accent.is-focus {
    border-color: transparent;
}
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent.is-focus::before,
[data-panel] .welcome-screen > .bg-accent.is-focus::before,
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent.is-focus::after,
[data-panel] .welcome-screen > .bg-accent.is-focus::after {
    opacity: 1;
}
[data-panel] .relative.flex.flex-col.items-center.gap-2.w-full > .bg-accent.is-focus::after,
[data-panel] .welcome-screen > .bg-accent.is-focus::after {
    display: block;
}


.ai-logo {
    width: var(--mp-logo-width);
    height: var(--mp-logo-width);
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 24px;
}
.ai-logo .shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(64.009163468deg, #286cf6 23.44140625%, #286cf6 23.44140625%, #00e0e0 79.84765625%);
    animation: ai-logo-wave 4s ease-in-out infinite;
    position: relative;
}
.ai-logo::after {
    background-color: #fff;
    content: "";
    width: 60%;
    height: 60%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.4), 0 0 2px 4px rgba(255, 255, 255, 0.3);
}
@keyframes ai-logo-wave {
    0% {
        border-radius: 70% 30% 72% 28% / 27% 61% 39% 73%;
    }
    50% {
        border-radius: 77% 23% 54% 46% / 40% 38% 62% 60%;
    }
    100% {
        border-radius: 70% 30% 72% 28% / 27% 61% 39% 73%;
    }
}
@keyframes ai-logo-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@keyframes ai-logo-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
[data-step-type="assistant_message"].is-loading .h-5.w-5 img {
    animation: message-logo-loader 3s linear infinite;
    transform-origin: center;
}
@keyframes message-logo-loader {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.7);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}
.ai-loading-overlay {
    position: absolute;
    left: 35px;
    top: 12px;
    padding-top: 6px;
    min-height: 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}
.ai-loading-overlay::before {
    content: '';
    width: 150px;
    height: 5px;
    background: linear-gradient(#474bff 0 0), linear-gradient(#474bff 0 0), #dbdcef;
    background-size: 60% 100%;
    background-repeat: no-repeat;
    animation: message-loader 5s infinite ease-in-out;
    position: absolute;
    border-radius: 8px;
}
@keyframes message-loader {
    0% {
        background-position: -150% 0,-150% 0;
    }
    66% {
        background-position: 250% 0,-150% 0;
    }
    100% {
        background-position: 250% 0, 250% 0;
    }
}

#header {
    display: none;
}