/* =====================================================
   NOTIFICACIONES - Estilos para sistema de notificaciones
   ===================================================== */

/* Dropdown de notificaciones en navbar */
.notifications-dropdown {
    position: relative;
}

/* Badge contador */
.notification-badge-pulse {
    animation: pulse-notification 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .7;
    }
}

/* Item de notificación */
.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    transform: translateX(2px);
}

.notification-item.unread {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

/* Iconos de notificación según tipo */
.notification-icon-success {
    background-color: #dcfce7;
    color: #16a34a;
}

.notification-icon-error {
    background-color: #fee2e2;
    color: #dc2626;
}

.notification-icon-warning {
    background-color: #fef3c7;
    color: #f59e0b;
}

.notification-icon-info {
    background-color: #dbeafe;
    color: #3b82f6;
}

/* Prioridades */
.notification-priority-urgent {
    border-left-color: #dc2626;
    animation: pulse-urgent 1.5s infinite;
}

@keyframes pulse-urgent {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

.notification-priority-high {
    border-left-color: #f59e0b;
}

.notification-priority-medium {
    border-left-color: #3b82f6;
}

.notification-priority-low {
    border-left-color: #6b7280;
}

/* Empty state */
.notification-empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Scroll personalizado para lista de notificaciones */
.notifications-scroll::-webkit-scrollbar {
    width: 6px;
}

.notifications-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.notifications-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.notifications-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animaciones para entrar/salir */
.notification-enter {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-exit {
    animation: slideOutRight 0.3s ease-out;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .notifications-dropdown .dropdown-menu {
        width: 90vw;
        right: 5vw;
        left: 5vw;
    }
}

/* Line clamp utility (para truncar texto) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge en notificaciones */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.notification-badge.badge-urgent {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.notification-badge.badge-high {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Estados de carga */
.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.notification-loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


