﻿/**
 * export-banner.css
 *
 * Styles for the in-page export progress and notification banners.
 * Rendered by AssetAreaExport (asset-area-export.js).
 */

/* ── Banner container ────────────────────────────────────────────────────────
   Inserted after .maintenance inside #stickyTopElements so it participates
   in the existing sticky flow. No fixed positioning needed — the parent
   sticky container handles placement.
   ─────────────────────────────────────────────────────────────────────────── */

#export-banner-container {
    width: 100%;
}

/* ── Individual banner ──────────────────────────────────────────────────────── */

.export-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: all;
    border-bottom: 3px solid transparent;
    transition: background-color 0.2s ease;
}

    .export-banner[hidden] {
        display: none;
    }

/* ── Variants ────────────────────────────────────────────────────────────────── */

.export-banner--info {
    background-color: #151a66;
    color: #ffffff;
    border-bottom-color: #0d1045;
}

.export-banner--success {
    background-color: #166534;
    color: #ffffff;
    border-bottom-color: #14532d;
}

.export-banner--error {
    background-color: #991b1b;
    color: #ffffff;
    border-bottom-color: #7f1d1d;
}

/* ── Message text ────────────────────────────────────────────────────────────── */

.export-banner__message {
    flex: 1;
    min-width: 0; /* prevents text overflowing flex container */
}

/* ── Action buttons ──────────────────────────────────────────────────────────── */

.export-banner__btn {
    flex-shrink: 0;
    padding: 5px 16px;
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

    .export-banner__btn:hover {
        background-color: rgba(255, 255, 255, 0.32);
    }

    .export-banner__btn:active {
        background-color: rgba(255, 255, 255, 0.45);
    }

    .export-banner__btn:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

/* ── Tablet adjustments (primary target device) ─────────────────────────────── */

@media (max-width: 768px) {
    .export-banner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }

    .export-banner__message {
        flex-basis: 100%;
    }

    .export-banner__btn {
        font-size: 0.875rem;
        padding: 7px 18px;
    }
}
