/* Alerta temporário — canto superior direito */
@keyframes alerta-daniel-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(255, 60, 60, 0.65),
            0 6px 24px rgba(185, 28, 28, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 0 14px rgba(255, 60, 60, 0),
            0 10px 32px rgba(220, 38, 38, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }
}

@keyframes alerta-daniel-ring {
    0% {
        opacity: 0.85;
        transform: scale(1);
    }
    70%, 100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

@keyframes alerta-daniel-shimmer {
    0% { transform: translateX(-120%) skewX(-18deg); }
    100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes alerta-daniel-icone-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

#alerta-daniel-badge {
    position: fixed;
    top: 80px;
    right: 12px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 240px;
    padding: 10px 32px 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: linear-gradient(
        145deg,
        #ff5a5a 0%,
        #ef4444 28%,
        #dc2626 55%,
        #b91c1c 82%,
        #991b1b 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    animation: alerta-daniel-pulse 1.6s ease-in-out infinite;
    transition: filter 0.2s ease;
}

#alerta-daniel-badge::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 2px solid rgba(255, 100, 100, 0.75);
    pointer-events: none;
    animation: alerta-daniel-ring 1.6s ease-out infinite;
    z-index: -1;
}

#alerta-daniel-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    pointer-events: none;
    animation: alerta-daniel-shimmer 2.8s ease-in-out infinite;
}

#alerta-daniel-badge:hover {
    animation-play-state: paused;
    filter: brightness(1.08);
    transform: scale(1.05);
}

#alerta-daniel-badge .alerta-daniel-icone {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 200, 200, 0.5);
    animation: alerta-daniel-icone-bounce 1.6s ease-in-out infinite;
}

#alerta-daniel-badge .alerta-daniel-texto {
    position: relative;
    z-index: 1;
}

#alerta-daniel-badge .alerta-daniel-fechar-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

#alerta-daniel-badge .alerta-daniel-fechar-badge:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: scale(1.1);
}

/* SweetAlert2 — modal grande com vídeo */
.swal2-popup.alerta-daniel-modal {
    width: 95vw !important;
    max-width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

.swal2-popup.alerta-daniel-modal .swal2-html-container {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.alerta-daniel-video-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.alerta-daniel-video-wrap video,
.alerta-daniel-video-wrap iframe {
    width: 100%;
    height: 100%;
    max-height: calc(95vh - 56px);
    object-fit: contain;
    border: none;
}

.swal2-popup.alerta-daniel-modal .swal2-footer {
    flex-shrink: 0;
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.alerta-daniel-footer-acoes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-left: auto;
}

.alerta-daniel-btn-fechar,
.alerta-daniel-btn-whatsapp {
    padding: 10px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    min-width: 120px;
    border-radius: 8px !important;
    text-decoration: none !important;
}

.alerta-daniel-btn-whatsapp {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.alerta-daniel-btn-whatsapp:hover {
    background: #20bd5a !important;
    border-color: #20bd5a !important;
    color: #fff !important;
}

.alerta-daniel-footer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}

.alerta-daniel-footer-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
