/* Estilos para el sistema de notificaciones */
.notification-bell-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.notification-bell {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: scale(1.05);
}

.notification-bell i {
    font-size: 16px;
    color: #6c757d;
}

.notification-bell:hover i {
    color: #495057;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    overflow: hidden;
    z-index: 1050;
    margin-top: 5px;
}

.notification-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.notification-header button {
    font-size: 12px;
    padding: 2px 8px;
    text-decoration: none;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

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

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.notification-title i {
    color: #007bff;
}

.notification-message {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #adb5bd;
}

.notification-actions {
    display: flex;
    align-items: center;
}

.notification-actions button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-actions button i {
    font-size: 12px;
}

/* Scrollbar personalizado para la lista de notificaciones */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .notification-bell-container {
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -100px;
    }
    
    .notification-item {
        padding: 10px 12px;
    }
    
    .notification-header {
        padding: 10px 12px;
    }
}

/* Animaciones */
.notification-dropdown {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado vacío */
.notification-list .text-muted {
    font-style: italic;
}

/* Integración con el navbar existente */
.navbar .notification-bell-container {
    display: flex;
    align-items: center;
}

/* Ajustes para el tema oscuro si existe */
@media (prefers-color-scheme: dark) {
    .notification-bell {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .notification-bell:hover {
        background-color: #495057;
    }
    
    .notification-bell i {
        color: #adb5bd;
    }
    
    .notification-dropdown {
        background: #343a40;
        border-color: #495057;
    }
    
    .notification-header {
        background: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .notification-item {
        border-color: #495057;
    }
    
    .notification-item:hover {
        background-color: #495057;
    }
    
    .notification-title {
        color: #f8f9fa;
    }
    
    .notification-message {
        color: #adb5bd;
    }
}