/* Notification Badge */
#notificationBadge {
    top: 4px;
    right: -8px;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 8px;
}

/* Animação de ondas concêntricas */
@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.3;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Animação de balanço do ícone */
@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

/* Container do ícone */
#notificationIcon {
    display: inline-block;
    transform-origin: center top;
    transition: color 0.3s ease;
    position: relative;
}

#notificationIcon svg {
    transition: stroke 0.3s ease, fill 0.3s ease;
    transform-origin: center;
    position: relative;
    z-index: 2;
}

/* Ondas concêntricas quando houver notificações */
#notificationDropdown.has-notifications #notificationIcon::before,
#notificationDropdown.has-notifications #notificationIcon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2.5px solid rgba(220, 53, 69, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    animation: wave 3s ease-out infinite;
    pointer-events: none;
}

#notificationDropdown.has-notifications #notificationIcon::after {
    animation-delay: 1.5s;
}

/* Ícone vermelho e balançando quando houver notificações */
#notificationDropdown.has-notifications #notificationIcon {
    animation: shake 2s ease-in-out infinite;
}

#notificationDropdown.has-notifications #notificationIcon svg {
    stroke: #dc3545;
    fill: #dc3545;
}

/* Dropdown de notificações */
#notificationDropdown .dropdown-menu {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

/* Item de notificação */
.notification-item {
    white-space: normal;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}
