﻿/* StagePilot Tabs v1 */

.sp-tablist .sp-tab-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 280px;
}

.sp-tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.sp-tab-close {
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 .25rem;
    opacity: .6;
    cursor: pointer;
}

    .sp-tab-close:hover {
        opacity: 1;
    }

.sp-tabpane-inner {
    min-height: 40px;
}

/* ===== StagePilot Flash (Overlay, kein Layout-Shift) ===== */
.sp-flash-host {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* über allem */
    width: min(760px, calc(100vw - 24px));
    pointer-events: none; /* Host blockiert nichts */
}

/* Banner */
.sp-flash {
    pointer-events: auto; /* Banner darf klickbar sein */
    border-radius: 14px;
    overflow: hidden;
    /* Leuchtender + kräftiger */
    border: 1px solid rgba(0, 255, 128, 0.60);
    background: linear-gradient( 180deg, rgba(0, 255, 128, 0.22), rgba(0, 255, 128, 0.14) );
    /* Textfarbe: dunkler, sicher lesbar */
    color: #053a24 !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 255, 128, 0.18) inset, 0 0 22px rgba(0, 255, 128, 0.40);
    /* Animation baseline */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 320ms ease, transform 380ms ease;
}

/* Sichtbar */
.sp-flash-host.show .sp-flash {
    opacity: 1;
    transform: translateY(0);
    animation: spFlashGlow 900ms ease-out 1;
}

/* Neon-Top-Bar */
.sp-flash::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, rgba(0,255,128,0.0), rgba(0,255,128,0.95), rgba(0,255,128,0.0) );
}

/* Inhalt Layout (Text + X) */
.sp-flash-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
}

/* Text */
.sp-flash-text {
    flex: 1 1 auto;
    font-weight: 600;
    line-height: 1.25;
}

/* Close Button */
.sp-flash-close {
    flex: 0 0 auto;
    border: 0;
    background: rgba(5, 58, 36, 0.08);
    color: #053a24;
    border-radius: 10px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.85;
}

    .sp-flash-close:hover {
        opacity: 1;
        background: rgba(5, 58, 36, 0.14);
    }

/* Glow Puls beim Einblenden */
@keyframes spFlashGlow {
    0% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.10), 0 0 18px rgba(0,255,128,0.30);
    }

    50% {
        box-shadow: 0 14px 36px rgba(0,0,0,0.12), 0 0 30px rgba(0,255,128,0.55);
    }

    100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.10), 0 0 22px rgba(0,255,128,0.40);
    }
}

