/* Generating indicator — plain text with subtle dots */
#generating-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0 60px;
    color: var(--text-soft);
    font-size: clamp(0.78rem, 2.8vw, 0.85rem);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Status container: clips overflowing marquee text */
.gen-status-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

/* The scrolling text span: GPU-composited via transform */
#gen-status-text {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

/* Marquee keyframes — translateX drives the scroll purely on the
   compositor thread; no layout or paint is required per frame. */
@keyframes gen-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.gen-dots {
    display: flex;
    gap: 5px;
}

.gen-dot {
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    animation: dot-bounce 1.2s ease-in-out infinite;
}

.gen-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.gen-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: scale(0.75);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Warning Note shown for PPTX files */
.warning-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(420px, 100%);
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff9e6;
    border: 1px solid #ffeab3;
    font-size: clamp(0.72rem, 3vw, 0.8rem);
    color: #8a6d1c;
    line-height: 1.45;
    animation: toast-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.warning-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

/* ── FLOATING SCROLL TO BOTTOM BUTTON ── */
.scroll-bottom-btn {
    position: fixed;
    bottom: 140px;
    right: 24px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(35, 34, 40, 0.92);
    color: var(--text-dark);
    border: 1px solid var(--border);
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: scroll-btn-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.15s ease, background-color 0.15s ease;
    will-change: transform;
}

.scroll-bottom-btn:hover {
    background: rgba(50, 48, 58, 0.95);
}

.scroll-bottom-btn:active {
    transform: scale(0.94);
}

@keyframes scroll-btn-pop {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
