/* Estilos para notificaciones */
.count-indicator {
    position: relative;
    display: inline-block;
}

.count-indicator .counti {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

.navbar-dropdown.preview-list {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

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

.preview-thumbnail {
    margin-right: 12px;
}

.preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.preview-icon.bg-danger {
    background-color: #dc3545;
}

.preview-icon.bg-warning {
    background-color: #ffc107;
}

.preview-icon.bg-success {
    background-color: #28a745;
}

.preview-icon.bg-info {
    background-color: #17a2b8;
}

.preview-item-content h6 {
    margin-bottom: 4px;
    font-size: 14px;
    color: #333;
}

.preview-item-content .small-text {
    font-size: 12px;
    line-height: 1.2;
}

.dropdown-header {
    padding: 12px 20px;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
}

/* Animaciones para el icono de campana */
@keyframes bellShake {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

@keyframes bellPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes bellBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.count-indicator:hover .ti-bell {
    animation: bellShake 0.5s ease-in-out;
}

/* Animación cuando hay notificaciones */
.count-indicator.has-notifications {
    animation: bellPulse 2s ease-in-out infinite;
}

/* Animación cuando llegan notificaciones nuevas */
.count-indicator.new-notification {
    animation: bellBounce 0.8s ease-in-out 4;
}

/* Efecto de brillo para notificaciones */
.count-indicator.has-notifications::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: bellGlow 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes bellGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}