:root {
    --main-font: 'Nunito', sans-serif;
    --main-blue: 0, 56, 255;
    --quick-shadow: 0 12px 32px rgba(9, 18, 43, 0.22);
    --quick-ring: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

@font-face {
    font-family: 'UniChat';
    src: url('/fonts/TTF/ClashDisplay-Variable.ttf') format('truetype');
}

.quick-notification {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -16px) scale(0.98);
    max-width: 520px;
    width: calc(100% - 32px);
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    color: rgba(var(--main-blue), 0.95);
    text-align: center;
    font-size: 18px;
    line-height: 1.35;
    font-family: "UniChat";
    font-weight: 500;
    letter-spacing: 0.2px;
    box-shadow: var(--quick-shadow), var(--quick-ring);
    border: 1px solid rgba(14, 89, 255, 0.18);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 220ms ease,
        transform 240ms ease,
        visibility 0s linear 240ms;
}

.quick-notification::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 6px;
    height: 68%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 88, 255, 0.95), rgba(0, 56, 255, 0.2));
    box-shadow: 0 0 12px rgba(0, 88, 255, 0.35);
}

.quick-notification a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.quick-notification[show = "true"] {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
    transition:
        opacity 220ms ease,
        transform 260ms ease,
        visibility 0s linear 0s;
}

.quick-notification[error = "false"] {
    color: rgba(var(--main-blue), 1);
    border-color: rgba(14, 89, 255, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 241, 255, 0.96));
}

.quick-notification[error = "false"]::before {
    background: linear-gradient(180deg, rgba(0, 88, 255, 0.95), rgba(0, 56, 255, 0.2));
    box-shadow: 0 0 12px rgba(0, 88, 255, 0.35);
}

.quick-notification[error = "true"] {
    color: rgba(196, 18, 48, 0.98);
    border-color: rgba(196, 18, 48, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 240, 0.96));
    box-shadow: 0 12px 30px rgba(182, 24, 46, 0.2), var(--quick-ring);
}

.quick-notification[error = "true"]::before {
    background: linear-gradient(180deg, rgba(220, 28, 62, 0.95), rgba(220, 28, 62, 0.2));
    box-shadow: 0 0 12px rgba(220, 28, 62, 0.35);
}

.quick-notification[show = "false"] {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -14px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        visibility 0s linear 220ms;
}

@media (max-width: 520px) {
    .quick-notification {
        top: 12px;
        font-size: 16px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .quick-notification::before {
        left: 10px;
    }
}