/* Estilos para la animación de la campanita de notificaciones */

@keyframes bell-shake {
    0% { transform: rotate(0); }
    10% { transform: rotate(6deg); }
    20% { transform: rotate(-6deg); }
    30% { transform: rotate(6deg); }
    40% { transform: rotate(-6deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.animate-bell {
    animation: bell-shake 1s ease-in-out infinite;
    transform-origin: top center;
}

/* Estilos para el dropdown de notificaciones */
.notification-dropdown {
    width: min(92vw, 420px);
    max-height: min(72vh, 640px);
    background-color: white;
    border-radius: 0.9rem;
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.35), 0 8px 20px -10px rgba(15, 23, 42, 0.22);
    z-index: 4500 !important;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.notification-list {
    max-height: min(60vh, 520px);
    overflow-y: auto;
}

.notification-item {
    border-bottom: 1px solid #f3f4f6;
}

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

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* Animación de aparición para el dropdown */
@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-dropdown:not(.hidden) {
    animation: dropdown-fade-in 0.2s ease-out forwards;
}

.notification-anchor {
    position: relative;
    z-index: 4600;
}
