#pusher-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pusher-notification {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.pusher-alert {
    display: flex;
    align-items: center;
    border-radius: 16px;
    margin: 0;
    box-shadow: none;
    padding: 15px;
    background: transparent;
    color: inherit;
    border: none;
    opacity: 1;
    width: 100%;
    position: relative;
}


.pusher-notification.type-success {
    background: #28a745;
    color: #fff;
}
.pusher-notification.type-info {
    background: #007bff;
    color: #fff;
}
.pusher-notification.type-warning {
    background: #ffc107;
    color: #333;
}
.pusher-notification.type-error {
    background: #dc3545;
    color: #fff;
}

.pusher-notification .icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    margin-left: 5px;
    position: relative;
}

.pusher-notification .alert-timer {
    position: absolute;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 5px;
    stroke-dashoffset: -170;
    stroke-dasharray: 250;
    animation: alert-timer 12s linear forwards;
    animation-delay: 3s;
    animation-direction: reverse;
}

.pusher-notification .notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.pusher-notification .titulo {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    padding: 0;
}

.pusher-notification .text {
    text-align: center;
    padding: 0;
    margin: 0;
    min-height: auto;
    font-size: 0.9rem;
    font-weight: 400;
}

.pusher-notification .btn-close,
.pusher-notification .close-btn {
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transition: background 0.2s;
    position: relative;
    z-index: 2;
}

/* Btn close para cada type*/
.pusher-notification.type-success .btn-close:hover,
.pusher-notification.type-success .close-btn:hover {
    background: #218838;
}
.pusher-notification.type-error .btn-close:hover,
.pusher-notification.type-error .close-btn:hover {
    background: #c82333;
}
.pusher-notification.type-info .btn-close:hover,
.pusher-notification.type-info .close-btn:hover {
    background: #0056b3;
}
.pusher-notification.type-warning .btn-close:hover,
.pusher-notification.type-warning .close-btn:hover {
    background: #e0a800;
}

/* Animação de entrada para cada type*/
.pusher-notification.type-success {
  animation: slideInSuccess 0.8s cubic-bezier(.4,1.7,.7,1) both;
}

.pusher-notification.type-info {
  animation: slideInInfo 0.9s ease-out both;
}

.pusher-notification.type-warning {
  animation: slideInWarning 1s ease-out both;
}

.pusher-notification.type-error {
  animation: bounce-in-right 1.2s ease-out both;
}


.pusher-notification.type-success .icon {
    --pulse-color: #34d399ff; 
    animation: pulse-animation 2s ease-in-out infinite;
    animation-delay: 5s;
  }
  .pusher-notification.type-error .icon {
    --pulse-color: #ff6b81ff; 
    animation: pulse-animation 3.5s ease-in-out infinite;
    animation-delay: 5s;
  }
  .pusher-notification.type-info .icon {
    --pulse-color: #38bdf8ff; 
    animation: pulse-animation 2s ease-in-out infinite;
    animation-delay: 5s;
  }
  .pusher-notification.type-warning .icon {
    --pulse-color: #ffe066ff; 
    animation: pulse-animation 2s ease-in-out infinite;
    animation-delay: 5s;
  }

  
.fade-out {
  animation: fadeOut 1.5s ease forwards;
}


@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px var(--pulse-color, rgba(0,0,0,0.4));
  }
  50% {
    box-shadow: 0 0 0 18px var(--pulse-color, rgba(0,0,0,0.8));
  }
  100% {
    box-shadow: 0 0 0 0px var(--pulse-color, rgba(0,0,0,0.4));
  }
}


/* Entrada error*/
@keyframes bounce-in-right {
  0% {
    transform: translateX(600px);
    opacity: 0;
    animation-timing-function: ease-in;
  }
  38% {
    transform: translateX(0);
    opacity: 1;
    animation-timing-function: ease-out;
  }
  55% {
    transform: translateX(68px);
    animation-timing-function: ease-in;
  }
  72% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
  81% {
    transform: translateX(32px);
    animation-timing-function: ease-in;
  }
  90% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
  95% {
    transform: translateX(8px);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
}

/* Entrada Sucesso */
@keyframes slideInSuccess {
  0% { transform: translateX(100%); opacity: 0; }
  80% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0) scale(1.02); }
}

/* Entrada Info */
@keyframes slideInInfo {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1); opacity: 1; }
  100% { box-shadow: 0 0 20px rgba(52, 152, 219, 1); }
}

/* Entrada Warning */
@keyframes slideInWarning {
  0% {
    transform: scale(0.2) rotate(0deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) rotate(3deg);
    opacity: 1;
  }
  80% {
    transform: scale(0.97) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  } 
}

/* Animação saida */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(4);

  }
}

/*timer */
@keyframes alert-timer {
    0% {
        stroke-dashoffset: -170;
        stroke-dasharray: 250;
        transform: scale(1);
    }
    88%, 90% {
        stroke-dashoffset: -0;
        stroke-dasharray: 250;
        transform: scale(1);
    }
    100%, 94% {
        stroke-dashoffset: -0;
        stroke-dasharray: 250;
        transform: scale(1.2);
    }
}


/* Responsividade para mobile */
@media (max-width: 576px) {
    #pusher-notification-container {
        width: 95vw;
        right: 2vw;
        top: 10px;
    }
    .pusher-notification .text {
        font-size: 0.95rem;
        padding: 10px 8px;
    }
}