/* BoardSpot 3D alerts — replaces SweetAlert2 */

.bs3d-root {
    --bs3d-sky: #38bdf8;
    --bs3d-deep: #0284c7;
    --bs3d-ocean: #0369a1;
    --bs3d-ink: #0f172a;
    --bs3d-muted: #475569;
    font-family: Inter, "Segoe UI", sans-serif;
}

.bs3d-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
    perspective: 1400px;
    animation: bs3d-fade-in 0.18s ease;
}

.bs3d-card {
    position: relative;
    width: min(420px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 22px;
    padding: 28px 26px 22px;
    text-align: center;
    color: var(--bs3d-ink);
    transform: rotateX(12deg) translateY(18px) scale(0.94);
    transform-style: preserve-3d;
    animation: bs3d-pop 0.34s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    box-shadow:
        0 1px 0 #e0f2fe,
        0 10px 0 #7dd3fc,
        0 18px 0 #0284c7,
        0 28px 40px rgba(3, 105, 161, 0.28);
}

.bs3d-slab {
    position: absolute;
    inset: 8px -8px -14px 8px;
    border-radius: 22px;
    background: linear-gradient(135deg, #7dd3fc, #0284c7 55%, #0369a1);
    transform: translateZ(-28px);
    z-index: -1;
    box-shadow: 0 22px 36px rgba(3, 105, 161, 0.32);
}

.bs3d-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #fff;
    transform: translateZ(24px);
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.12),
        0 14px 24px rgba(14, 165, 233, 0.28);
}

.bs3d-icon.is-success { background: linear-gradient(145deg, #34d399, #059669); }
.bs3d-icon.is-error,
.bs3d-icon.is-danger { background: linear-gradient(145deg, #f87171, #dc2626); }
.bs3d-icon.is-warning { background: linear-gradient(145deg, #fbbf24, #d97706); }
.bs3d-icon.is-info,
.bs3d-icon.is-question { background: linear-gradient(145deg, #38bdf8, #0284c7); }

.bs3d-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bs3d-text {
    margin: 0;
    color: var(--bs3d-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bs3d-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.bs3d-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    transform: translateY(0);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.bs3d-btn:active {
    transform: translateY(2px);
}

.bs3d-btn-confirm {
    color: #fff;
    background: linear-gradient(180deg, #38bdf8, #0284c7);
    box-shadow: 0 6px 0 #0369a1, 0 10px 18px rgba(3, 105, 161, 0.28);
}

.bs3d-btn-confirm.is-danger {
    background: linear-gradient(180deg, #f87171, #dc2626);
    box-shadow: 0 6px 0 #991b1b, 0 10px 18px rgba(185, 28, 28, 0.28);
}

.bs3d-btn-cancel {
    color: #334155;
    background: #e2e8f0;
    box-shadow: 0 6px 0 #94a3b8;
}

.bs3d-toasts {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 12100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.bs3d-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 36px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--bs3d-ink);
    transform: rotateX(10deg) translateX(24px);
    animation: bs3d-toast-in 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    box-shadow:
        0 1px 0 #e0f2fe,
        0 8px 0 #7dd3fc,
        0 14px 0 #0284c7,
        0 18px 28px rgba(3, 105, 161, 0.22);
}

.bs3d-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.bs3d-toast-icon.is-success { background: linear-gradient(145deg, #34d399, #059669); }
.bs3d-toast-icon.is-error,
.bs3d-toast-icon.is-danger { background: linear-gradient(145deg, #f87171, #dc2626); }
.bs3d-toast-icon.is-warning { background: linear-gradient(145deg, #fbbf24, #d97706); }
.bs3d-toast-icon.is-info,
.bs3d-toast-icon.is-question { background: linear-gradient(145deg, #38bdf8, #0284c7); }

.bs3d-toast-title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.4;
}

@keyframes bs3d-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bs3d-pop {
    to { transform: rotateX(0deg) translateY(0) scale(1); }
}

@keyframes bs3d-toast-in {
    to { transform: rotateX(0deg) translateX(0); }
}

@media (max-width: 640px) {
    .bs3d-toasts {
        left: 12px;
        right: 12px;
        top: 12px;
    }
    .bs3d-toast {
        min-width: 0;
        width: 100%;
    }
}
