/* ═══════════════════════════════════════════════════════
   Active911 — iOS-Style Toast Notifications
   ═══════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--ticker-height, 36px) + 12px);
    right: 12px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 360px;
}

.toast {
    width: 340px;
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    pointer-events: all;
    cursor: pointer;
    animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: top right;
    overflow: hidden;
}

.toast.dismissing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
}

/* Priority left border */
.toast--priority-1 { border-left: 4px solid #0B2240; }
.toast--priority-2 { border-left: 4px solid #FF9500; }
.toast--priority-3 { border-left: 4px solid #FFCC00; }

/* Header row */
.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toast-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-app-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: contain;
}

.toast-app-icon-fallback {
    width: 20px;
    height: 20px;
    background: #0B2240;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
}

.toast-app-name {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

.toast-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Divider */
.toast-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

/* Content */
.toast-type {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.toast-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

/* Unit badges */
.toast-units {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.toast-unit {
    padding: 2px 8px;
    background: rgba(0, 122, 255, 0.3);
    border: 1px solid rgba(0, 122, 255, 0.4);
    color: #5AC8FA;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* View all link */
.toast-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toast-view-all {
    font-size: 12px;
    color: #5AC8FA;
    text-decoration: none;
    font-weight: 600;
}

/* Incident feed offline badge */
.incident-offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.kiosk-fullscreen .toast-container {
    top: 12px;
    z-index: 9999;
}

@media (max-width: 480px) {
    .toast-container {
        right: 8px;
        left: 8px;
        max-width: none;
    }
    .toast {
        width: 100%;
    }
}
