/* ================================================================
   FLOATING BUTTONS
   ================================================================
   Floating "Vorschau beenden" button shown while a test is being
   previewed (run + test_result views). Two design variants:

     Variant 1 (.fpb-v1)  Pille  - rounded red gradient pill with exit
                                    icon, soft shadow, lift on hover.
     Variant 2 (.fpb-v2)  Glas   - frosted glass bar with pulsing red
                                    status dot.

   Shared wrapper:
     .fpb-floating  position:fixed, bottom-left, z-index above content.
                    Visible by default (production). The design overview
                    demo overrides this to toggle variants on/off.

   Used in:
     resources/views/tests/run.blade.php
     resources/views/tests/test_result.blade.php
     resources/views/website_design/components/floating-preview-button.blade.php (demo)

   Prefix: fpb-  (floating preview button) - do not reuse generically.
   ================================================================ */

/* ── Shared floating wrapper ────────────────────────────────────── */
.fpb-floating {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2000;
}

/* ── Variant 1: Pill with exit icon ─────────────────────────────── */
.fpb-v1-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs, 0.5rem);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35), 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration:none;
}
.fpb-v1-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(192, 57, 43, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.fpb-v1-btn:active { transform: translateY(0); }
.fpb-v1-icon { flex-shrink: 0; }

/* ── Variant 2: Frosted glass bar ───────────────────────────────── */
.fpb-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs, 0.5rem);
    background-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 57, 43, 0.25);
    padding: 0.6rem 1.1rem;
    border-radius: 0.6em;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.fpb-v2-btn:hover {
    border-color: rgba(192, 57, 43, 0.6);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}
.fpb-v2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e74c3c;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6);
    animation: fpb-v2-pulse 1.8s infinite;
    flex-shrink: 0;
}
@keyframes fpb-v2-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
.fpb-v2-text { color: #5a6c7d; font-weight: 500; }
.fpb-v2-action {
    color: #c0392b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
